Skip to content

Commit

Permalink
fix: use type alias instead of type definition
Browse files Browse the repository at this point in the history
  • Loading branch information
CaptainStandby committed Mar 6, 2023
1 parent 8396a55 commit 94b7bc4
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion internal/client-go/model_identity_schema_container.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion internal/httpclient/model_identity_schema_container.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion schema/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func (h *Handler) RegisterAdminRoutes(admin *x.RouterAdmin) {
//
//nolint:deadcode,unused
//lint:ignore U1000 Used to generate Swagger and OpenAPI definitions
type identitySchema json.RawMessage
type identitySchema = json.RawMessage

// Get Identity JSON Schema Response
//
Expand Down
3 changes: 2 additions & 1 deletion spec/api.json
Original file line number Diff line number Diff line change
Expand Up @@ -971,7 +971,8 @@
"type": "string"
},
"schema": {
"$ref": "#/components/schemas/identitySchema"
"description": "The actual Identity JSON Schema",
"type": "object"
}
},
"type": "object"
Expand Down
3 changes: 2 additions & 1 deletion spec/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -3769,7 +3769,8 @@
"type": "string"
},
"schema": {
"$ref": "#/definitions/identitySchema"
"description": "The actual Identity JSON Schema",
"type": "object"
}
}
},
Expand Down

0 comments on commit 94b7bc4

Please sign in to comment.