Bumping k8s dependencies to 1.13
This commit is contained in:
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