Skip to content
Permalink
Browse files

fixes to opitional string/array values

  • Loading branch information...
garethr committed Feb 24, 2018
1 parent 2fd9069 commit fdd2a83f8327a3f5068c2a30dd14fedd2d205c12
Showing 39,952 changed files with 5,793,231 additions and 665,273 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
@@ -9,7 +9,12 @@
$repo="garethr/kubernetes-json-schema"

$arr = @("master",
"v1.9.3",
"v1.9.2",
"v1.9.1",
"v1.9.0",
"v1.8.8",
"v1.8.7",
"v1.8.6",
"v1.8.5",
"v1.8.4",
@@ -54,6 +59,10 @@ foreach($version in $arr) {
$schema="https://raw.githubusercontent.com/kubernetes/kubernetes/${version}/api/openapi-spec/swagger.json"
$prefix="https://raw.githubusercontent.com/${repo}/master/${version}/_definitions.json"

Remove-Item "$version-standalone-strict" -Recurse -ErrorAction Ignore
Remove-Item "$version-standalone" -Recurse -ErrorAction Ignore
Remove-Item "$version-local" -Recurse -ErrorAction Ignore
Remove-Item "$version" -Recurse -ErrorAction Ignore
docker run --rm -v ${PWD}:/out garethr/openapi2jsonschema -o "$version-standalone-strict" --kubernetes --stand-alone --strict "$schema"
docker run --rm -v ${PWD}:/out garethr/openapi2jsonschema -o "$version-standalone" --kubernetes --stand-alone "$schema"
docker run --rm -v ${PWD}:/out garethr/openapi2jsonschema -o "$version-local" --kubernetes "$schema"
@@ -10,6 +10,12 @@
REPO="garethr/kubernetes-json-schema"

declare -a arr=(master
v1.9.3
v1.9.2
v1.9.1
v1.9.0
v1.8.8
v1.8.7
v1.8.6
v1.8.5
v1.8.4

Large diffs are not rendered by default.

This file was deleted.

@@ -7,7 +7,10 @@
"items": {
"$ref": "_definitions.json#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector"
},
"type": "array",
"type": [
"array",
"null"
],
"description": "ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added"
}
}

0 comments on commit fdd2a83

Please sign in to comment.
You can’t perform that action at this time.