| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| ## Guidance | ||
|
|
||
| For concepts where a standardized code exists and is in common use, fields | ||
| representing these concepts **should** use the standardized code for both input |
There was a problem hiding this comment.
Sorry, something went wrong.
There was a problem hiding this comment.
@hudlow Perhaps a specific note about not bastardizing strings into a company's string enum format.
Sorry, something went wrong.
|
|
||
| - Fields representing standardized concepts **must** use the appropriate data | ||
| type for the standard code (usually `string`). | ||
| - Fields representing standardized concepts **should not** use enums, even if |
There was a problem hiding this comment.
Maybe distinguish the OpenAPI "choices" concept here.
Sorry, something went wrong.
| case-insensitive unless this would introduce ambiguity (for example, accept | ||
| both `en-gb` and `en-GB`). When providing values to users, APIs **should** | ||
| use the canonical case (in the example above, `en-GB`). | ||
|
|
There was a problem hiding this comment.
Maybe add a quick section about defaults, saying that defaults are permissible, and the sentinel value must be empty.
Sorry, something went wrong.
There was a problem hiding this comment.
Looks good! 👍
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
No description provided.