fix: tidy up schema references

This commit is contained in:
Marc Littlemore 2024-12-20 09:45:48 +00:00
parent 5a5ce6e273
commit 6dcbb7ade0
No known key found for this signature in database
2 changed files with 8 additions and 26 deletions

View file

@ -6,7 +6,12 @@ delete:
summary: Delete a user from a project
description: Delete a user from a project from your instance.
parameters:
- $ref: '../schemas/parameters/projectId.yml'
- name: projectId
in: path
description: The ID of the project.
required: true
schema:
type: string
- $ref: '../../../users/spec/schemas/parameters/userIdentifier.yml'
responses:
'204':
@ -17,28 +22,3 @@ delete:
$ref: '../../../../shared/spec/responses/forbidden.yml'
'404':
$ref: '../../../../shared/spec/responses/notFound.yml'
# put:
# x-eov-operation-id: updateProject
# x-eov-operation-handler: v1/handlers/projects/projects.handler
# tags:
# - Project
# summary: Update a project
# description: Update a project.
# requestBody:
# description: Updated project object.
# content:
# application/json:
# schema:
# $ref: '../schemas/project.yml'
# required: true
# responses:
# '204':
# description: Operation successful.
# '400':
# $ref: '../../../../shared/spec/responses/badRequest.yml'
# '401':
# $ref: '../../../../shared/spec/responses/unauthorized.yml'
# '403':
# $ref: '../../../../shared/spec/responses/forbidden.yml'
# '404':
# $ref: '../../../../shared/spec/responses/notFound.yml'

View file

@ -23,6 +23,8 @@ put:
- Project
summary: Update a project
description: Update a project.
parameters:
- $ref: '../schemas/parameters/projectId.yml'
requestBody:
description: Updated project object.
content: