Skip to content

POST /registry/org cannot use name in place of long_name #1755

@ElectricNroff

Description

@ElectricNroff

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']
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Low Priority

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions