-
-
Notifications
You must be signed in to change notification settings - Fork 804
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
[Windows] 10, version 1607 (W) is missing a link, schema validation fails #2362
Comments
We already have a script (https://github.com/endoflife-date/endoflife.date/blob/master/_auto/validate.py), but it doesn't validate the |
Oh, understood. Thank you for the clarification. |
In this case the link is optional, so I think we need to change the schema. |
We should do both:
@filip-szweda Curious to hear how you're using the API. We have a Known Users wiki page, would like to update this if it's an interesting usecase. There's also a v1 API in progress (#2080), would appreciate feedback there as well. |
I do not think we can do that. |
I meant dropping |
That does not seem compatible with #2079. |
Just checked by generating a client with openapi-generator-cli.
The generated code for link is :
This is consistent with what I read on the subject, which says that parameters are optional by default (see the required field on https://spec.openapis.org/oas/latest.html#model-with-example). But I may have missed something, it needs to be confirmed by more research. @filip-szweda, what makes you say the |
Hey, I'm on a leave right until next week. Now unfortunately I can't get this information. Additionally, I was allowed by my company to share the usecase we're your using your project for (as @captn3m0 asked), but this will also have to wait until next week. Thanks in advance for understanding. |
@captn3m0 @marcwrobel Thank you for your wait! First of all, I am a developer from Agent Installation & Deployment team of Dynatrace. For that purpose, a special tool has been created that verifies EOL dates and checks for new operating systems using your endoflife.date project. It is important for us to keep the API as stable as possible. If you are interested in putting us somewhere as your customer, let us know - we can write something more. Second of all, to validate data from the API our tool uses schemas contained in endoflife.date/assets/openapi.yml.
|
We try to ensure consistency for the API wherever we can, so releases will always use The releaseLabel changes are supposed to be cosmetic, and our v1 API will pre-render these nicely, so such minor changes will not impact the API ideally. Hopefully, once we have a stable API release, we will have a way to notify users of API breakage on a product level, but that's a far away goal as of now. |
Thank you for the fix. |
Link to product page on endoflife.date
https://endoflife.date/api/windows/10,%20version%201607%20(W).json
Details of incorrect and correct details you have found
The cycle's link is missing.
This means that schema present in openapi.yml fails to validate the cycle's JSON.
Either the schema would have to be updated from:
or missing link should be added.
Additional context
To avoid such discrepancies in the future, do you think it would be worth adding to the CI a Python script that would validate every change to product .md(s) against the schema?
The text was updated successfully, but these errors were encountered: