Skip to content

Commit

Permalink
Update NewSchemaValidator
Browse files Browse the repository at this point in the history
  • Loading branch information
ndombroski committed May 15, 2024
1 parent a432687 commit 82fa4c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/netbox/v1beta1/netboxip_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func TestValidationSchema(t *testing.T) {
if err := apiextensionsv1.Convert_v1_CustomResourceValidation_To_apiextensions_CustomResourceValidation(NetBoxIPValidationSchema, &schema, nil); err != nil {
t.Errorf("converting CRD validation: %q\n", err)
}
validator, _, err := apiservervalidation.NewSchemaValidator(&schema)
validator, _, err := apiservervalidation.NewSchemaValidator(schema.OpenAPIV3Schema)
if err != nil {
t.Errorf("creating validator: %q\n", err)
}
Expand Down

0 comments on commit 82fa4c3

Please sign in to comment.