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 Json schema uses an unknown type int64 and double #229

Open
MadVikingGod opened this issue Jul 3, 2024 · 0 comments
Open

The Json schema uses an unknown type int64 and double #229

MadVikingGod opened this issue Jul 3, 2024 · 0 comments

Comments

@MadVikingGod
Copy link
Contributor

MadVikingGod commented Jul 3, 2024

Describe the bug
When trying to validate the current semantic convention with the tool ajv-cli, which is used in the Validate Json github action, the tool reports an unknown format of 'int64'.

To Reproduce
Steps to reproduce the behavior:

$ weaver -V
weaver 0.4.0
$ weaver registry json-schema -o semconv.schema.json   
$ ajv -s semconv.schema.json -d "*.yaml" --own-properties 
schema semconv.schema.json is invalid
error: unknown format "int64" ignored in schema at path "#/definitions/Examples/anyOf/1"

Expected behavior
The schema should be useable by tools outside of Weaver.

Additional context
I removed the "format": "int64" lines, and ajv complained about "format": "double" in the spec. Removing both from the generated spec allowed it to validate the model.

@MadVikingGod MadVikingGod changed the title The Json schema uses an unknown type int64 The Json schema uses an unknown type int64 and double Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant