Cleanup and test updates for bigdecimal04

This commit is contained in:
Graham Esau 2023-09-17 21:10:22 +01:00
parent cc28738f41
commit a8d723342f
6 changed files with 20 additions and 6 deletions

View file

@ -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")
}

View file

@ -0,0 +1,6 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Decimal",
"type": "string",
"pattern": "^-?[0-9]+(\\.[0-9]+)?$"
}