Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publish Expectations JSON Schema for use in IDEs for Intellisense and Validation #1883

Open
dclayton-godaddy opened this issue Jun 21, 2024 · 1 comment

Comments

@dclayton-godaddy
Copy link

Describe the feature request
Provide complete expectations JSON schema to be used by IDEs for intellisense and validation.

What you are trying to do
We would like to use intellisense and validation in our mock-server expectations in JSON.

The solution you'd like
If the schemas provided in this repo were published to https://www.schemastore.org/json/, we can set VS Code to map our json files to the schema and get intellisense and validation.

Describe alternatives you've considered
Pointing to the schema files in github directly, however VS Code cannot resolve /definitions/expectation.

@Rikuoja
Copy link

Rikuoja commented Sep 25, 2024

Definitely +1 here.

Currently I am trying to figure out, from examples, how exactly to create a slightly more complex expectation JSON. As long as we only have examples, it is very difficult and time-consuming to try to debug your expectations, using time that should be spent testing and debugging the actual code instead.

Only recently realized the expectation JSON file has the same schema as the OpenAPI definition, but couldn't find a way to refer to schemas defined inside the OpenAPI definition.

I am going to have to copy-paste parts of the definition manually to create a valid schema for my VSCode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants