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

Fix schemas #1701

Merged
merged 1 commit into from Feb 28, 2019
Merged

Fix schemas #1701

merged 1 commit into from Feb 28, 2019

Conversation

dgageot
Copy link
Contributor

@dgageot dgageot commented Feb 27, 2019

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

@codecov-io
Copy link

codecov-io commented Feb 27, 2019

Codecov Report

Merging #1701 into master will decrease coverage by 0.18%.
The diff coverage is 100%.

Impacted file tree graph

@@            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
Impacted Files Coverage Δ
hack/schemas/main.go 90.11% <100%> (+2.25%) ⬆️
pkg/skaffold/docker/client.go 62.74% <0%> (-8.83%) ⬇️
pkg/skaffold/docker/image.go 51.42% <0%> (-6.96%) ⬇️
pkg/skaffold/runner/timings.go 15.38% <0%> (-1.29%) ⬇️
pkg/skaffold/runner/runner.go 60.2% <0%> (-0.09%) ⬇️
cmd/skaffold/app/cmd/cmd.go 0% <0%> (ø) ⬆️
pkg/skaffold/config/options.go 88.23% <0%> (ø) ⬆️
pkg/skaffold/build/cache.go
pkg/skaffold/util/util.go 46.04% <0%> (+1.9%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 60173f6...102104b. Read the comment docs.

@dgageot dgageot added the docs-modifications runs the docs preview service on the given PR label Feb 27, 2019
@container-tools-bot
Copy link

Please visit http://35.236.109.79:1313 to view changes to the docs.

@container-tools-bot container-tools-bot removed the docs-modifications runs the docs preview service on the given PR label Feb 27, 2019
@dgageot dgageot force-pushed the fix-schemas branch 2 times, most recently from 30509cc to cb6c5dc Compare February 28, 2019 16:24
Copy link
Contributor

@nkubala nkubala left a 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

}

schema := Schema{
Version: "http://json-schema-org/draft-07/schema#",
Copy link
Contributor

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);
Copy link
Contributor

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>
@dgageot
Copy link
Contributor Author

dgageot commented Feb 28, 2019

Thank you @nkubala. I've addressed the nits.

@nkubala nkubala merged commit f52fa79 into GoogleContainerTools:master Feb 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants