Cleanup and test updates for bigdecimal04
This commit is contained in:
parent
cc28738f41
commit
a8d723342f
6 changed files with 20 additions and 6 deletions
|
@ -7,6 +7,11 @@ fn rust_decimal() -> TestResult {
|
|||
}
|
||||
|
||||
#[test]
|
||||
fn bigdecimal() -> TestResult {
|
||||
test_default_generated_schema::<bigdecimal::BigDecimal>("bigdecimal")
|
||||
fn bigdecimal03() -> TestResult {
|
||||
test_default_generated_schema::<bigdecimal03::BigDecimal>("bigdecimal03")
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn bigdecimal04() -> TestResult {
|
||||
test_default_generated_schema::<bigdecimal04::BigDecimal>("bigdecimal04")
|
||||
}
|
||||
|
|
6
schemars/tests/expected/bigdecimal04.json
Normal file
6
schemars/tests/expected/bigdecimal04.json
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"title": "Decimal",
|
||||
"type": "string",
|
||||
"pattern": "^-?[0-9]+(\\.[0-9]+)?$"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue