diff --git a/rest_client_api_server/embedded_spec.go b/rest_client_api_server/embedded_spec.go index 4e106f98b..b84aa5a9c 100644 --- a/rest_client_api_server/embedded_spec.go +++ b/rest_client_api_server/embedded_spec.go @@ -4804,7 +4804,8 @@ func init() { "$ref": "#/definitions/envInfo" }, "externalId": { - "type": "string" + "type": "string", + "x-nullable": true }, "hasApiSession": { "type": "boolean" @@ -10798,7 +10799,8 @@ func init() { "$ref": "#/definitions/envInfo" }, "externalId": { - "type": "string" + "type": "string", + "x-nullable": true }, "hasApiSession": { "type": "boolean" diff --git a/rest_management_api_client/identity/detail_identity_responses.go b/rest_management_api_client/identity/detail_identity_responses.go index a3917513c..cb2ef52f2 100644 --- a/rest_management_api_client/identity/detail_identity_responses.go +++ b/rest_management_api_client/identity/detail_identity_responses.go @@ -77,7 +77,7 @@ func NewDetailIdentityOK() *DetailIdentityOK { /* DetailIdentityOK describes a response with status code 200, with default header values. -A signle identity +A single identity */ type DetailIdentityOK struct { Payload *rest_model.DetailIdentityEnvelope diff --git a/rest_management_api_server/embedded_spec.go b/rest_management_api_server/embedded_spec.go index 649ce5229..5fdb10314 100644 --- a/rest_management_api_server/embedded_spec.go +++ b/rest_management_api_server/embedded_spec.go @@ -8651,7 +8651,7 @@ func init() { "operationId": "detailIdentity", "responses": { "200": { - "description": "A signle identity", + "description": "A single identity", "schema": { "$ref": "#/definitions/detailIdentityEnvelope" } @@ -19916,7 +19916,8 @@ func init() { "$ref": "#/definitions/envInfo" }, "externalId": { - "type": "string" + "type": "string", + "x-nullable": true }, "hasApiSession": { "type": "boolean" @@ -31860,7 +31861,7 @@ func init() { "operationId": "detailIdentity", "responses": { "200": { - "description": "A signle identity", + "description": "A single identity", "schema": { "$ref": "#/definitions/detailIdentityEnvelope" } @@ -43225,7 +43226,8 @@ func init() { "$ref": "#/definitions/envInfo" }, "externalId": { - "type": "string" + "type": "string", + "x-nullable": true }, "hasApiSession": { "type": "boolean" diff --git a/rest_management_api_server/operations/identity/detail_identity_responses.go b/rest_management_api_server/operations/identity/detail_identity_responses.go index ea1c0ad86..a03f758ea 100644 --- a/rest_management_api_server/operations/identity/detail_identity_responses.go +++ b/rest_management_api_server/operations/identity/detail_identity_responses.go @@ -40,7 +40,7 @@ import ( // DetailIdentityOKCode is the HTTP code returned for type DetailIdentityOK const DetailIdentityOKCode int = 200 -/*DetailIdentityOK A signle identity +/*DetailIdentityOK A single identity swagger:response detailIdentityOK */ diff --git a/scripts/template.copyright.txt b/scripts/template.copyright.txt index b7337676b..cd19fd4be 100644 --- a/scripts/template.copyright.txt +++ b/scripts/template.copyright.txt @@ -20,4 +20,4 @@ __ __ _ \ /\ / (_| | | | | | | | | | | (_| | : This file is generated, do not edit it. \/ \/ \__,_|_| |_| |_|_|_| |_|\__, | __/ | - |___/i \ No newline at end of file + |___/ \ No newline at end of file diff --git a/specs/README.md b/specs/README.md new file mode 100644 index 000000000..452910e0e --- /dev/null +++ b/specs/README.md @@ -0,0 +1,23 @@ +# Edge Specs + +This folder contains the specifications for the two current edge APIs: client, management. + +## Updating a Spec + +If a spec has a bug and you are changing a spec please do not change these files. These +files are generated and should not be modified.: + +* ./management.yml +* ./client.yml + +The actual specs to modify are located in the `./source/` folder + +## Updating Client/Server Stubs + +After modifying a file, you will need to regenerate the stub code. + +* Download/install `swagger` from https://github.com/go-swagger/go-swagger/releases +* cd to the directory containing this README +* issue either: +** `./scripts/generate_rest.sh` +** `powershell -file "./scripts/generate_rest.ps1"` diff --git a/specs/client.yml b/specs/client.yml index 645e6bec7..0eaaefc52 100644 --- a/specs/client.yml +++ b/specs/client.yml @@ -3485,6 +3485,7 @@ definitions: $ref: '#/definitions/envInfo' externalId: type: string + x-nullable: true hasApiSession: type: boolean hasEdgeRouterConnection: diff --git a/specs/management.yml b/specs/management.yml index 3424cd749..6b0564b7d 100644 --- a/specs/management.yml +++ b/specs/management.yml @@ -14369,6 +14369,7 @@ definitions: $ref: '#/definitions/envInfo' externalId: type: string + x-nullable: true hasApiSession: type: boolean hasEdgeRouterConnection: diff --git a/specs/source/shared/identities.yml b/specs/source/shared/identities.yml index b6d906b54..fff360a2b 100644 --- a/specs/source/shared/identities.yml +++ b/specs/source/shared/identities.yml @@ -73,6 +73,7 @@ definitions: $ref: 'base-entity.yml#/definitions/tags' externalId: type: string + x-nullable: true disabled: type: boolean disabledAt: