In 2.7.4, if I use the below fake_company JSON document, which is shown as the Example Value on the https://cveawg-test.mitre.org/api-docs/#/Registry%20Organization/orgCreateSingle page, it fails with "missingProperty": "long_name"
|
router.post('/registry/org', |
|
/* |
|
#swagger.tags = ['Registry Organization'] |
|
#swagger.operationId = 'orgCreateSingle' |
|
#swagger.summary = "Creates an organization (accessible to Secretariat)" |
|
#swagger.description = " |
|
<h2>Access Control</h2> |
|
<p>User must belong to an organization with the <b>Secretariat</b> role</p> |
|
<h2>Expected Behavior</h2> |
|
<p><b>Secretariat:</b> Creates a new organization</p>" |
|
#swagger.parameters['$ref'] = [ |
|
'#/components/parameters/apiEntityHeader', |
|
'#/components/parameters/apiUserHeader', |
|
'#/components/parameters/apiSecretHeader' |
|
] |
|
#swagger.requestBody = { |
|
required: true, |
|
content: { |
|
'application/json': { |
|
schema: { |
|
anyOf: [ |
|
{ $ref: '../schemas/registry-org/SecretariatOrg.json' }, |
|
{ $ref: '../schemas/registry-org/CNAOrg.json' }, |
|
{ $ref: '../schemas/registry-org/ADPOrg.json' }, |
|
{ $ref: '../schemas/registry-org/BulkDownloadOrg.json' } |
|
] |
|
}, |
|
example: { |
|
short_name: 'fake_company', |
|
name: 'Fake Company', |
|
hard_quota: 1000, |
|
authority: ['CNA'] |
|
} |
In 2.7.4, if I use the below fake_company JSON document, which is shown as the Example Value on the https://cveawg-test.mitre.org/api-docs/#/Registry%20Organization/orgCreateSingle page, it fails with
"missingProperty": "long_name"cve-services/src/controller/org.controller/index.js
Lines 435 to 467 in 09e58a6