Skip to content
Snippets Groups Projects
Commit 2cc31dd6 authored by Martin Lowe's avatar Martin Lowe :flag_ca:
Browse files

Merge branch 'malowe/main/fix-spec-fields' into 'main'

Add required fields in openapi spec for more strict testing

See merge request eclipsefdn/it/api/eclipsefdn-project-adopters!280
parents 3cad3ca9 098fcc7d
No related branches found
No related tags found
No related merge requests found
......@@ -65,9 +65,18 @@ components:
$ref: "#/components/schemas/AdoptedProject"
AdoptedProject:
type: object
additionalProperties: false
required:
- adopters
- logo
- name
- project_id
- url
properties:
Adopters:
$ref: "#/components/schemas/Adopter"
adopters:
type: array
items:
$ref: "#/components/schemas/Adopter"
logo:
type: string
description: The URL containing the project logo.
......@@ -86,7 +95,19 @@ components:
$ref: "#/components/schemas/Adopter"
Adopter:
type: object
additionalProperties: false
required:
- projects
- homepage_url
- logo
- logo_white
- name
properties:
projects:
type: array
description: List of projects by their ID that the company adopts within a product
items:
type: string
homepage_url:
type: string
description: The URL containing the adopter's homepage.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment