Skip to content

Commit

Permalink
[json schema] When we don’t know a field’s type, let’s leave it empty
Browse files Browse the repository at this point in the history
Fixes GoogleContainerTools#3932

Signed-off-by: David Gageot <david@gageot.net>
  • Loading branch information
dgageot committed Apr 16, 2020
1 parent 3546d95 commit 8b4431b
Show file tree
Hide file tree
Showing 21 changed files with 0 additions and 22 deletions.
1 change: 0 additions & 1 deletion docs/content/en/schemas/v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -1351,7 +1351,6 @@
]
},
"value": {
"type": "object",
"description": "value to apply. Can be any portion of yaml.",
"x-intellij-html-description": "value to apply. Can be any portion of yaml."
}
Expand Down
1 change: 0 additions & 1 deletion docs/content/en/schemas/v1beta10.json
Original file line number Diff line number Diff line change
Expand Up @@ -1153,7 +1153,6 @@
]
},
"value": {
"type": "object",
"description": "value to apply. Can be any portion of yaml.",
"x-intellij-html-description": "value to apply. Can be any portion of yaml."
}
Expand Down
1 change: 0 additions & 1 deletion docs/content/en/schemas/v1beta11.json
Original file line number Diff line number Diff line change
Expand Up @@ -1162,7 +1162,6 @@
]
},
"value": {
"type": "object",
"description": "value to apply. Can be any portion of yaml.",
"x-intellij-html-description": "value to apply. Can be any portion of yaml."
}
Expand Down
1 change: 0 additions & 1 deletion docs/content/en/schemas/v1beta12.json
Original file line number Diff line number Diff line change
Expand Up @@ -1162,7 +1162,6 @@
]
},
"value": {
"type": "object",
"description": "value to apply. Can be any portion of yaml.",
"x-intellij-html-description": "value to apply. Can be any portion of yaml."
}
Expand Down
1 change: 0 additions & 1 deletion docs/content/en/schemas/v1beta13.json
Original file line number Diff line number Diff line change
Expand Up @@ -1214,7 +1214,6 @@
]
},
"value": {
"type": "object",
"description": "value to apply. Can be any portion of yaml.",
"x-intellij-html-description": "value to apply. Can be any portion of yaml."
}
Expand Down
1 change: 0 additions & 1 deletion docs/content/en/schemas/v1beta14.json
Original file line number Diff line number Diff line change
Expand Up @@ -1198,7 +1198,6 @@
]
},
"value": {
"type": "object",
"description": "value to apply. Can be any portion of yaml.",
"x-intellij-html-description": "value to apply. Can be any portion of yaml."
}
Expand Down
1 change: 0 additions & 1 deletion docs/content/en/schemas/v1beta15.json
Original file line number Diff line number Diff line change
Expand Up @@ -1208,7 +1208,6 @@
]
},
"value": {
"type": "object",
"description": "value to apply. Can be any portion of yaml.",
"x-intellij-html-description": "value to apply. Can be any portion of yaml."
}
Expand Down
1 change: 0 additions & 1 deletion docs/content/en/schemas/v1beta16.json
Original file line number Diff line number Diff line change
Expand Up @@ -1250,7 +1250,6 @@
]
},
"value": {
"type": "object",
"description": "value to apply. Can be any portion of yaml.",
"x-intellij-html-description": "value to apply. Can be any portion of yaml."
}
Expand Down
1 change: 0 additions & 1 deletion docs/content/en/schemas/v1beta17.json
Original file line number Diff line number Diff line change
Expand Up @@ -1250,7 +1250,6 @@
]
},
"value": {
"type": "object",
"description": "value to apply. Can be any portion of yaml.",
"x-intellij-html-description": "value to apply. Can be any portion of yaml."
}
Expand Down
1 change: 0 additions & 1 deletion docs/content/en/schemas/v1beta5.json
Original file line number Diff line number Diff line change
Expand Up @@ -957,7 +957,6 @@
]
},
"value": {
"type": "object",
"description": "value to apply. Can be any portion of yaml.",
"x-intellij-html-description": "value to apply. Can be any portion of yaml."
}
Expand Down
1 change: 0 additions & 1 deletion docs/content/en/schemas/v1beta6.json
Original file line number Diff line number Diff line change
Expand Up @@ -1006,7 +1006,6 @@
]
},
"value": {
"type": "object",
"description": "value to apply. Can be any portion of yaml.",
"x-intellij-html-description": "value to apply. Can be any portion of yaml."
}
Expand Down
1 change: 0 additions & 1 deletion docs/content/en/schemas/v1beta7.json
Original file line number Diff line number Diff line change
Expand Up @@ -1101,7 +1101,6 @@
]
},
"value": {
"type": "object",
"description": "value to apply. Can be any portion of yaml.",
"x-intellij-html-description": "value to apply. Can be any portion of yaml."
}
Expand Down
1 change: 0 additions & 1 deletion docs/content/en/schemas/v1beta8.json
Original file line number Diff line number Diff line change
Expand Up @@ -1147,7 +1147,6 @@
]
},
"value": {
"type": "object",
"description": "value to apply. Can be any portion of yaml.",
"x-intellij-html-description": "value to apply. Can be any portion of yaml."
}
Expand Down
1 change: 0 additions & 1 deletion docs/content/en/schemas/v1beta9.json
Original file line number Diff line number Diff line change
Expand Up @@ -1052,7 +1052,6 @@
]
},
"value": {
"type": "object",
"description": "value to apply. Can be any portion of yaml.",
"x-intellij-html-description": "value to apply. Can be any portion of yaml."
}
Expand Down
1 change: 0 additions & 1 deletion docs/content/en/schemas/v2alpha1.json
Original file line number Diff line number Diff line change
Expand Up @@ -1364,7 +1364,6 @@
]
},
"value": {
"type": "object",
"description": "value to apply. Can be any portion of yaml.",
"x-intellij-html-description": "value to apply. Can be any portion of yaml."
}
Expand Down
1 change: 0 additions & 1 deletion docs/content/en/schemas/v2alpha2.json
Original file line number Diff line number Diff line change
Expand Up @@ -1303,7 +1303,6 @@
]
},
"value": {
"type": "object",
"description": "value to apply. Can be any portion of yaml.",
"x-intellij-html-description": "value to apply. Can be any portion of yaml."
}
Expand Down
1 change: 0 additions & 1 deletion docs/content/en/schemas/v2alpha3.json
Original file line number Diff line number Diff line change
Expand Up @@ -1335,7 +1335,6 @@
]
},
"value": {
"type": "object",
"description": "value to apply. Can be any portion of yaml.",
"x-intellij-html-description": "value to apply. Can be any portion of yaml."
}
Expand Down
1 change: 0 additions & 1 deletion docs/content/en/schemas/v2alpha4.json
Original file line number Diff line number Diff line change
Expand Up @@ -1335,7 +1335,6 @@
]
},
"value": {
"type": "object",
"description": "value to apply. Can be any portion of yaml.",
"x-intellij-html-description": "value to apply. Can be any portion of yaml."
}
Expand Down
1 change: 0 additions & 1 deletion docs/content/en/schemas/v2beta1.json
Original file line number Diff line number Diff line change
Expand Up @@ -1339,7 +1339,6 @@
]
},
"value": {
"type": "object",
"description": "value to apply. Can be any portion of yaml.",
"x-intellij-html-description": "value to apply. Can be any portion of yaml."
}
Expand Down
1 change: 0 additions & 1 deletion docs/content/en/schemas/v2beta2.json
Original file line number Diff line number Diff line change
Expand Up @@ -1339,7 +1339,6 @@
]
},
"value": {
"type": "object",
"description": "value to apply. Can be any portion of yaml.",
"x-intellij-html-description": "value to apply. Can be any portion of yaml."
}
Expand Down
2 changes: 0 additions & 2 deletions hack/schemas/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,6 @@ func (g *schemaGenerator) newDefinition(name string, t ast.Expr, comment string,
if ident, ok := tt.X.(*ast.Ident); ok {
typeName := ident.Name
setTypeOrRef(def, typeName)
} else if _, ok := tt.X.(*ast.SelectorExpr); ok {
def.Type = "object"
}

case *ast.ArrayType:
Expand Down

0 comments on commit 8b4431b

Please sign in to comment.