-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Fix schemas #1701
Fix schemas #1701
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1701 +/- ##
==========================================
- Coverage 46.8% 46.61% -0.19%
==========================================
Files 126 125 -1
Lines 5935 5663 -272
==========================================
- Hits 2778 2640 -138
+ Misses 2865 2752 -113
+ Partials 292 271 -21
Continue to review full report at Codecov.
|
Please visit http://35.236.109.79:1313 to view changes to the docs. |
30509cc
to
cb6c5dc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
small nits but logic seems fine
hack/schemas/main.go
Outdated
} | ||
|
||
schema := Schema{ | ||
Version: "http://json-schema-org/draft-07/schema#", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: constant?
for (var key in properties.properties) { | ||
allProperties.push([key, properties.properties[key]]); | ||
for (var anyOf of definitions[name].anyOf) { | ||
console.log(anyOf); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this for debugging? maybe remove? probably doesn't matter too much though.
+ Make sure properties are displayed in preferred order in doc + Fix schemas to improve validation in IntelliJ and VSCode + Improve rendering in IntelliJ and VSCode Signed-off-by: David Gageot <david@gageot.net>
Thank you @nkubala. I've addressed the nits. |
I've tested the current schemas in multiple places and this change makes them work everywhere.
Also improves the rendering of the properties map on skaffold.dev. They are now displayed in the preferred order for easier reading.
Signed-off-by: David Gageot david@gageot.net