Profile validation
When to use
- •Creating or updating profile JSON files
- •Investigating validation errors
- •Ensuring OpenAPI operations exist for tools
Steps
- •Validate structure only:
- •
npm run validate -- profiles/my-profile.json
- •
- •Validate structure plus OpenAPI operations:
- •
npm run validate -- profiles/my-profile.json openapi.yaml
- •
- •Ensure parameter aliases are defined for generic path params.
- •Ensure metadata parameters are marked and not sent to the API.
Checks and tests
- •Run
npm run typecheckbefore finishing. - •Run
npm testafter fixing validation errors.
Notes
- •Operation lookup is strict. If an operation is missing, update the spec or profile.