Validator doesn't report properties that are in the required list but not defined
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 45/100
Rechercherichtung
Reproduce the supplied OpenAPI 3.0.3 example and inspect how required properties are checked when they are absent from properties. Done means the validator reports every undefined required property, including problem-type, order-trees, and site-location, rather than only event-photo.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Following specification causes validator to report only the event-photo property
Required list has not defined properties: ['event-photo']
whereas I would expect similar messages for the problem-type, order-trees and site-location properties.
openapi: 3.0.3
info:
title: Protect Earth API
version: 0.3.0
paths:
/events:
get:
operationId: get-events
summary: Get Events
description: Get a list of all the events
tags:
- Event
responses:
'200':
description: OK
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/Generic_Problem'
/orders:
post:
operationId: post-orders
summary: Create Order
tags:
- Order
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/Order'
responses:
'201':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/Event'
components:
schemas:
Generic_Problem:
title: Problem
type: object
required:
- problem-type
- title
properties:
title:
type: string
status:
type: integer
Event:
title: Event
type: object
required:
- description
- event-photo
properties:
id:
type: string
summary:
type: string
description:
type: string
Order:
title: Order
type: object
required:
- site
- order-trees
properties:
id:
type: string
format: uuid
readOnly: true
site:
$ref: '#/components/schemas/Site'
Site:
title: Site
type: object
required:
- url
- site-location
properties:
id:
type: string
format: uuid
url:
type: string
format: url
- Vorherrschende Sprache
- Python
- Sterne
- 409
- Forks
- 73
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beitragsleitfaden
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus python-openapi/openapi-spec-validator
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 55/100
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 55/100
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 30/100
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 42/100
python-openapi/openapi-spec-validator#400 · 1 Kommentar ·
-
kind/bug/confirmed
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 25/100
python-openapi/openapi-spec-validator#373 · 1 Kommentar ·
Alle Issues in python-openapi/openapi-spec-validator
Ähnliche Issues
-
triage/confirmed
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 88/100
agentscope-ai/agentscope#2775 ·
-
comp/desktop P3 type/bug
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 92/100
NousResearch/hermes-agent#118866 ·
-
bug
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 90/100
apache/cloudstack#14222 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100