Bumping k8s dependencies to 1.13
This commit is contained in:
3380
vendor/github.com/googleapis/gnostic/OpenAPIv3/schema-generator/3.0.1.md
generated
vendored
Normal file
3380
vendor/github.com/googleapis/gnostic/OpenAPIv3/schema-generator/3.0.1.md
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
5
vendor/github.com/googleapis/gnostic/OpenAPIv3/schema-generator/README.md
generated
vendored
5
vendor/github.com/googleapis/gnostic/OpenAPIv3/schema-generator/README.md
generated
vendored
@@ -4,10 +4,7 @@ This directory contains a support tool that reads (scrapes) the
|
||||
Markdown text specification for OpenAPI 3.0 and builds a
|
||||
corresponding JSON schema.
|
||||
|
||||
It also contains "3.0.md", a local copy of the OpenAPI specification
|
||||
with modifications that fix minor inconsistencies and make it easier
|
||||
to read. We hope to have these changes merged into the official
|
||||
document.
|
||||
It also contains "3.0.1.md", a local copy of the OpenAPI specification.
|
||||
|
||||
## Disclaimer
|
||||
|
||||
|
15
vendor/github.com/googleapis/gnostic/OpenAPIv3/schema-generator/main.go
generated
vendored
15
vendor/github.com/googleapis/gnostic/OpenAPIv3/schema-generator/main.go
generated
vendored
@@ -303,7 +303,7 @@ func (m *SchemaModel) objectWithID(id string) *SchemaObject {
|
||||
// NewSchemaModel returns a new SchemaModel.
|
||||
func NewSchemaModel(filename string) (schemaModel *SchemaModel, err error) {
|
||||
|
||||
b, err := ioutil.ReadFile("3.0.md")
|
||||
b, err := ioutil.ReadFile("3.0.1.md")
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -837,6 +837,19 @@ func main() {
|
||||
*(contentObject.PatternProperties) = append(*(contentObject.PatternProperties), namedSchema)
|
||||
}
|
||||
|
||||
// fix the contact object
|
||||
contactObject := schema.DefinitionWithName("contact")
|
||||
if contactObject != nil {
|
||||
emailProperty := contactObject.PropertyWithName("email")
|
||||
if emailProperty != nil {
|
||||
emailProperty.Format = stringptr("email");
|
||||
}
|
||||
urlProperty := contactObject.PropertyWithName("url")
|
||||
if urlProperty != nil {
|
||||
urlProperty.Format = stringptr("uri");
|
||||
}
|
||||
}
|
||||
|
||||
// write the updated schema
|
||||
output := schema.JSONString()
|
||||
err = ioutil.WriteFile("schema.json", []byte(output), 0644)
|
||||
|
Reference in New Issue
Block a user