GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Fix skeleton validation error should have required property id · Issue #111 · coderoad/coderoad-cli

Fix skeleton validation error should have required property id #111

New issue
Copy link
New issue
Copy link
Closed as not planned
Closed as not planned
Fix skeleton validation error should have required property id#111
Copy link
Assignees
ShMcK
Labels
bugSomething isn't workingSomething isn't working

Description

@jcandan
jcandan
opened on Jan 26, 2025
Issue body actions

Describe the bug

Running coderoad build gives a skeleton validation error: should have required property 'id', even after a coderoad validate success.

$ coderoad validate
...
--- Running setup test...
--- Loading solution commits...
--- Running solution test...

✔ Success!
$ coderoad build
Building CodeRoad tutorial.json...
Validation error at  - should have required property 'id'
Skeleton validation failed. See above to see what to fix

To Reproduce

I was getting this having completed the tutorial up to Build the config.json file.

I was able to reproduce this with one of the available example projects.

Note: I did need to capture all the branches, and I provide a loop to do that.

git clone [email protected]:coderoad/fcc-learn-npm.git
cd fcc-learn-npm/
for remote in `git branch -r`; do git branch --track ${remote#origin/} $remote; done
coderoad validate
coderoad build

Expected behavior

A successful build.

Desktop (please complete the following information):

  • Platfrom: Windows 11 Version 23H2 (OS Build 22631.2861)
  • OS: Ubuntu via WSL2
  • Version 24.04.1

Node (please complete the following information):

  • Version v20.18.2

Git (please complete the following information):

  • Version 2.43.0

Additional context

N/A

Activity

  1. jcandan
    added
    bugSomething isn't workingSomething isn't working
    on Jan 26, 2025
  2. jcandan
    assigned
    ShMcK
    on Jan 26, 2025
  3. jcandan commented on Jan 26, 2025

    @jcandan
    jcandan
    on Jan 26, 2025
    Author
    More actions

    Additionally confirmed this issue with Node v18.20.6.

  4. jcandan commented on Jan 27, 2025

    @jcandan
    jcandan
    on Jan 27, 2025
    Author
    More actions

    I found the solution.

    Reading through the skeleton schema, I found the following:

        id: {
          type: "string",
          description: "A unique identifier for your tutorial. Currently no system to create this, so create your own for now",
          examples: ["fcc-learn-npm"]
        },
    

    When I added id: 'fcc-learn-npm, it allowed the coderoad build to succeed.

    I'll create an issue to address this in the examples and tutorial.

  5. jcandan
    closed this as not plannedon Jan 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @ShMcK
    ShMcK

Labels

bugSomething isn't workingSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402520 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.