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

The shape of JSON schema snippets should be verified #293

Open
mristin opened this issue Nov 9, 2022 · 0 comments
Open

The shape of JSON schema snippets should be verified #293

mristin opened this issue Nov 9, 2022 · 0 comments

Comments

@mristin
Copy link
Contributor

mristin commented Nov 9, 2022

An invalid JSON schema snippet is not reported back to the user.

Here is a minimal example which produces a confusing schema:

@implementation_specific
class Something_weird:
    pass

Snippet:

{"type": "number"}

We would expect the entry for "SomethingWeird" to be verbatim snippet with the definition name generated by aas-core-codegen.

@mristin mristin changed the title Implementation-specific classes ignored in JSON schema if not referenced The shape of JSON schema snippets should be verified Nov 9, 2022
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

No branches or pull requests

1 participant