Skip to content

Conversation

@jsibbison-square
Copy link
Contributor

response.json_schema was added in #3188 . This pr extends goose recipe validate cli to also validate the json schema.

recipe_file_path.canonicalize().unwrap_or(recipe_file_path);
let additional_sub_recipe = SubRecipe {
path: recipe_file_path.to_string_lossy().to_string(),
path: canonical_path.to_string_lossy().to_string(),
Copy link
Collaborator

@lifeizhou-ap lifeizhou-ap Jul 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The recipe_file_path returned by extract_recipe_name already has been canonicalized. Not sure why you would like to do it here again

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

weird the tests were failing, will explore.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah it was failing on main too when we have a symlink for our temp directory. The fix is to canoncalise all the test file paths.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, the expected value was wrong

@jsibbison-square jsibbison-square merged commit ee714d7 into main Jul 3, 2025
14 of 16 checks passed
@jsibbison-square jsibbison-square deleted the jsibbison-20250703-cli-validate-response branch July 3, 2025 08:54
lifeizhou-ap added a commit that referenced this pull request Jul 3, 2025
* main:
  feat: Add close button (X) to toast notifications (#3197)
  Adds json schema validation to goose recipe validate cli (#3234)
lifeizhou-ap added a commit that referenced this pull request Jul 4, 2025
* main:
  feat(goose-cli): theme persistence & selection (#1693)
  chore(release): release version 1.0.32 (#3248)
  Add fuzzy file search functionality (#3240)
  update styling of user messages (#3247)
  Add support for escape key to dismiss settings menu (#3225)
  fix: Refactor string truncation logic into reusable utility function to avoid panic (#2818) (#2819)
  fix: Prevent modal from closing on text select. (#3127)
  fix: Add back lazy_static (#3243)
  chore: remove unused dependencies (#3049)
  feat: Add close button (X) to toast notifications (#3197)
  Adds json schema validation to goose recipe validate cli (#3234)
atarantino pushed a commit to atarantino/goose that referenced this pull request Jul 14, 2025
s-soroosh pushed a commit to s-soroosh/goose that referenced this pull request Jul 18, 2025
kwsantiago pushed a commit to kwsantiago/goose that referenced this pull request Jul 19, 2025
cbruyndoncx pushed a commit to cbruyndoncx/goose that referenced this pull request Jul 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants