ColumnConfig DataTypeEnum #2
Closed
opened 2024-06-10 10:57:35 +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#2
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.
DataTypeEnum wirklich mit beginnenden Großbuchstaben?
Vielleicht besser
Data Types Spec
Primitive data types in the OAS are based on the types supported by the JSON Schema Specification Wright Draft 00.
Note that
integeras a type is also supported and is defined as a JSON number without a fraction or exponent part.nullis not supported as a type (seenullablefor an alternative solution).Models are defined using the Schema Object, which is an extended subset of JSON Schema Specification Wright Draft 00.
Primitives have an optional modifier property:
format.OAS uses several known formats to define in fine detail the data type being used.
However, to support documentation needs, the
formatproperty is an openstring-valued property, and can have any value.Formats such as
"email","uuid", and so on, MAY be used even though undefined by this specification.Types that are not accompanied by a
formatproperty follow the type definition in the JSON Schema. Tools that do not recognize a specificformatMAY default back to thetypealone, as if theformatis not specified.The formats defined by the OAS are:
typeformatintegerint32integerint64numberfloatnumberdoublestringstringbytestringbinarybooleanstringdatefull-date- RFC3339stringdate-timedate-time- RFC3339stringpasswordTypischerweise stehen die types ja in Kleinbuchstaben da. Die enum-Werte sind 1:1 genau so, wie Sie auch im Progress und ggf. auch in der Datenbank zu finden sind. Dadurch sparen wir uns irgendwelche Casing-Übersetzungsprogramme in den API-Klassen und können die Werte direkt rausgeben/weiterverarbeiten.
Diese Werte aus der Columnconfig hier... klar. Ist kein direktes Datenbankfeld, aber ein Bestandteil des Shemas itself. Ich werde darauf achten, dass das in die CommonNames übersetzt wird.
Persönliche Meinung: Ich finde die CommonNames super verwirrend und schrecklich, dass sich sowas als common durchsetzt. Allein der Punkt "dateTime" entspricht "date-time". WTF?! Keine konsequente Benutzung eines Casingstiles.