mirror of
https://github.com/versia-pub/docs.git
synced 2025-12-06 06:18:19 +01:00
docs: 📝 Specify number precision validation in docs
This commit is contained in:
parent
cfd818c2ba
commit
2b8e2f087a
|
|
@ -25,6 +25,9 @@ Things that should be validated include, but are not limited to:
|
|||
- If you do set limits, they should be reasonable and well-documented.
|
||||
- The **type**, **precision** and **scale** of all numeric fields.
|
||||
- For example, a `size` field on a `ContentFormat` structure should be a positive integer, not a negative number or a floating-point number.
|
||||
<Note>
|
||||
All numeric fields in these docs have the appropriate precision (`u64`, `i64`, `f32`, etc.) specified. Do not use a different type in memory than the one specified in the docs.
|
||||
</Note>
|
||||
- The **validity** of all URLs and URIs (run them through your favorite URL parser).
|
||||
- The **time** of all dates and times (people should not be born in the future, or in the year 0).
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue