Null value in response #1
Open
opened 2024-06-10 10:08:33 +02:00 by Daniel_Hassert
·
1 comment
Labels
Clear labels
Kind/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Kind/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Breaking change that won't be backward compatible
Something is not working
Documentation changes
Improve existing functionality
New functionality
This is security issue
Issue or pull request related to testing
Priority
Critical
The priority is critical
Priority
High
The priority is high
Priority
Low
The priority is low
Priority
Medium
The priority is medium
Reviewed
Confirmed
Issue has been confirmed
Reviewed
Duplicate
This issue or pull request already exists
Reviewed
Invalid
Invalid issue
Reviewed
Won't Fix
This issue won't be fixed
Status
Abandoned
Somebody has started to work on this but abandoned work
Status
Blocked
Something is blocking this issue or pull request
Status
Need More Info
Feedback is required to reproduce issue or to continue work
Breaking change that won't be backward compatible
Something is not working
Documentation changes
Improve existing functionality
New functionality
This is security issue
Issue or pull request related to testing
Priority
Critical
The priority is critical
Priority
High
The priority is high
Priority
Low
The priority is low
Priority
Medium
The priority is medium
Reviewed
Confirmed
Issue has been confirmed
Reviewed
Duplicate
This issue or pull request already exists
Reviewed
Invalid
Invalid issue
Reviewed
Won't Fix
This issue won't be fixed
Status
Abandoned
Somebody has started to work on this but abandoned work
Status
Blocked
Something is blocking this issue or pull request
Status
Need More Info
Feedback is required to reproduce issue or to continue work
No labels
Milestone
No items
No Milestone
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: PRM_Software_AG/api-documentation#1
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Das folgende ist nur nice to have und tut auch nicht weh wenns so bleibt wie gehabt
Beispiel: OnlineServiceDomains
Erwartetes Model laut ApiDoku
Model generiert von Swagger:
Model in Response
Anregung
Damit Consumer nicht in die Falle gehen wenn sie swagger verwenden:
'How to define a property that can be string or null in OpenAPI (Swagger)?'
Swagger ignoriert außerdem, dass die Felder in unseren Models als Upper Camel Case geliefert werden :/
Das Casing bei deren generierten Code müsste man als Bug an Swagger melden. Können wir ja nicht beeinflussen.
Aktuell verwenden wir noch Version 3.0 der OpenAPI. Dort hatte ich (woanders mal gelesen) nur "required" verwendet. Ich werde es für die neue Doku dann mit verwenden, weil ich das mit der Syntax
type: ['null', string]schon nice finde. Ich lasse den Issue so lange offen.