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

int32 and int64 are not valid format specifiers #12

Open
Alan-R opened this issue Mar 4, 2022 · 1 comment
Open

int32 and int64 are not valid format specifiers #12

Alan-R opened this issue Mar 4, 2022 · 1 comment

Comments

@Alan-R
Copy link

Alan-R commented Mar 4, 2022

At least in the statefulspec.json file, {"format": "int32"} and {"format": "int64"} occur many times.

According to the JSON schema specification, these are not legal format types.

They make some JSON schema verifiers reject these specifications - because they aren't valid format specifiers.

@eyarz
Copy link

eyarz commented Mar 6, 2022

You are right.
int32 and int64 are part of the OpenAPI spec and not part of the JSONSchema spec.
But I think you should open this issue in the repo where the script that is doing this conversation is located:
https://github.com/yannh/kubeconform/blob/master/scripts/openapi2jsonschema.py#L94

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

2 participants