Skip to content

Commit

Permalink
Auto generated developers
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristianJacquot committed Aug 6, 2021
1 parent 3ce01ed commit 7976739
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 58 deletions.
54 changes: 13 additions & 41 deletions file/kong_json_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -269,46 +269,6 @@
"additionalProperties": false,
"type": "object"
},
"Developer": {
"properties": {
"created_at": {
"type": "integer"
},
"custom_id": {
"type": "string"
},
"email": {
"type": "string"
},
"id": {
"type": "string"
},
"meta": {
"type": "string"
},
"password": {
"type": "string"
},
"rbac_user": {
"$schema": "http://json-schema.org/draft-04/schema#",
"$ref": "#/definitions/RBACUser"
},
"roles": {
"items": {
"type": "string"
},
"type": "array"
},
"status": {
"type": "integer"
},
"updated_at": {
"type": "integer"
}
},
"additionalProperties": false,
"type": "object"
},
"FCACertificate": {
"required": [
"cert"
Expand Down Expand Up @@ -502,7 +462,19 @@
}
},
"additionalProperties": false,
"type": "object"
"type": "object",
"anyOf": [
{
"required": [
"Email"
]
},
{
"required": [
"id"
]
}
]
},
"FDocument": {
"properties": {
Expand Down
1 change: 1 addition & 0 deletions file/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -593,6 +593,7 @@ func (s FServicePackage) sortKey() string {
}

// FDeveloper represents a developer in Kong.
// +k8s:deepcopy-gen=true
type FDeveloper struct {
kong.Developer `yaml:",inline,omitempty"`
}
Expand Down
34 changes: 17 additions & 17 deletions file/zz_generated.deepcopy.go

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

0 comments on commit 7976739

Please sign in to comment.