Skip to content

Commit

Permalink
Use v1 version of JSONSchemaProps
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Tarazi <tarazichris@gmail.com>
  • Loading branch information
christarazi committed Aug 14, 2020
1 parent f2dbd82 commit 7bb5dee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/crd/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -384,8 +384,8 @@ func structToSchema(ctx *schemaContext, structType *ast.StructType) *apiext.JSON

// process oneOf groups
if fieldMarkedOneOf {
props.OneOf = append(props.OneOf, v1beta1.JSONSchemaProps{
Properties: map[string]v1beta1.JSONSchemaProps{fieldName: {}},
props.OneOf = append(props.OneOf, apiext.JSONSchemaProps{
Properties: map[string]apiext.JSONSchemaProps{fieldName: {}},
Required: []string{fieldName},
})
}
Expand Down

0 comments on commit 7bb5dee

Please sign in to comment.