You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a definition with mandatory field link to the dictionary (following example:)
definitions:
Amount:
type: objectdescription: Amount expressed as value and currency code.required:
- value
- currencyCodeproperties:
value:
type: integerformat: int64minimum: 0rawValue:
type: stringcurrencyCode:
type: stringpattern: '[A-Z]{3}'x-dictionary-name: currencyx-field-name: currencyx-field-type: CurrencyDictionaryItem
Use this definition in API response and in API request parameter
Current result
First issue: The request function typing requires the parameter to be provided with the dictionary field (which can be complicated to provided by the application).
Second issue: The dictionary field is serialized and sent to the API (which can lead to call rejection if strongly checked by the API).
Expected result
The definition should have a dictionary mandatory in response but optional or removed in request (maybe via a type helper or a duplication of interface?)
The serialization of the request should ignore the dictionary fields
Additional comments
No response
The text was updated successfully, but these errors were encountered:
Package name
core, schematics
Package version
Reproduction steps
Current result
First issue: The request function typing requires the parameter to be provided with the dictionary field (which can be complicated to provided by the application).
Second issue: The dictionary field is serialized and sent to the API (which can lead to call rejection if strongly checked by the API).
Expected result
Additional comments
No response
The text was updated successfully, but these errors were encountered: