Baltor Get started

Corner cases

JSON Schema and API requests

JSON Schema 2020-12 conformance test groups, and API request cases that each change one field of a valid request and expect exactly one validation error.

18 shown here, from 6,357 API request case groups in the library release of October 9, 2026.

What to watch for

  • format only annotates in JSON Schema 2020-12 unless a validator is asked to assert it.
  • Integers above 2^53 lose precision as JavaScript numbers.
  • A pattern in JSON Schema follows ECMA-262 regular expressions, not every engine's dialect.

Test packs and checks

  1. JSON Schema 2020-12 conformance test groups for the format keyword

    format.json

    JSON Schema 2020-12 conformance test groups for the format keyword: schemas with valid and invalid instances: 19 rows with a JSON Schema, a checked loader and tests.

    Rows
    19
    Data file
    data/format.json

    Code moduleMIT8 files, 38.1 KBreads files, runs commands

  2. JSON Schema 2020-12 conformance test groups for the pattern keyword

    pattern.json

    JSON Schema 2020-12 conformance test groups for the pattern keyword: schemas with valid and invalid instances: 3 rows with a JSON Schema, a checked loader and tests.

    Rows
    3
    Data file
    data/pattern.json

    Code moduleMIT8 files, 14.4 KBreads files, runs commands

  3. JSON Schema 2020-12 conformance test groups for the enum keyword

    enum.json

    JSON Schema 2020-12 conformance test groups for the enum keyword: schemas with valid and invalid instances: 16 rows with a JSON Schema, a checked loader and tests.

    Rows
    16
    Data file
    data/enum.json

    Code moduleMIT8 files, 23.5 KBreads files, runs commands

  4. JSON Schema 2020-12 conformance test groups for the required keyword

    required.json

    JSON Schema 2020-12 conformance test groups for the required keyword: schemas with valid and invalid instances: 5 rows with a JSON Schema, a checked loader and tests.

    Rows
    5
    Data file
    data/required.json

    Code moduleMIT8 files, 16.8 KBreads files, runs commands

  5. JSON Schema 2020-12 conformance test groups for the type keyword

    type.json

    JSON Schema 2020-12 conformance test groups for the type keyword: schemas with valid and invalid instances: 11 rows with a JSON Schema, a checked loader and tests.

    Rows
    11
    Data file
    data/type.json

    Code moduleMIT8 files, 27.5 KBreads files, runs commands

  6. JSON Schema 2020-12 conformance test groups for the minimum keyword

    minimum.json

    JSON Schema 2020-12 conformance test groups for the minimum keyword: schemas with valid and invalid instances: 2 rows with a JSON Schema, a checked loader and tests.

    Rows
    2
    Data file
    data/minimum.json

    Code moduleMIT8 files, 13.9 KBreads files, runs commands

  7. JSON Schema 2020-12 conformance test groups for the multipleOf keyword

    multipleOf.json

    JSON Schema 2020-12 conformance test groups for the multipleOf keyword: schemas with valid and invalid instances: 5 rows with a JSON Schema, a checked loader and tests.

    Rows
    5
    Data file
    data/multipleOf.json

    Code moduleMIT8 files, 14.5 KBreads files, runs commands

  8. JSON Schema 2020-12 conformance test groups for the uniqueItems keyword

    uniqueItems.json

    JSON Schema 2020-12 conformance test groups for the uniqueItems keyword: schemas with valid and invalid instances: 6 rows with a JSON Schema, a checked loader and tests.

    Rows
    6
    Data file
    data/uniqueItems.json

    Code moduleMIT8 files, 32.0 KBreads files, runs commands

  9. JSON Schema 2020-12 conformance test groups for the oneOf keyword

    oneOf.json

    JSON Schema 2020-12 conformance test groups for the oneOf keyword: schemas with valid and invalid instances: 11 rows with a JSON Schema, a checked loader and tests.

    Rows
    11
    Data file
    data/oneOf.json

    Code moduleMIT8 files, 19.6 KBreads files, runs commands

  10. JSON Schema 2020-12 conformance test groups for the if-then-else keyword

    if-then-else.json

    JSON Schema 2020-12 conformance test groups for the if-then-else keyword: schemas with valid and invalid instances: 12 rows with a JSON Schema, a checked loader and tests.

    Rows
    12
    Data file
    data/if-then-else.json

    Code moduleMIT8 files, 20.1 KBreads files, runs commands

  11. JSON Schema 2020-12 optional test groups for bignum

    bignum.json

    JSON Schema 2020-12 optional test groups for bignum: schemas with valid and invalid instances: 7 rows with a JSON Schema, a checked loader and tests.

    Rows
    7
    Data file
    data/bignum.json

    Code moduleMIT8 files, 14.9 KBreads files, runs commands

  12. JSON Schema 2020-12 optional regex format tests

    ecmascript-regex.json

    JSON Schema 2020-12 optional regex format tests: ECMA-262 regular expression edge cases: 6 rows with a JSON Schema, a checked loader and tests.

    Rows
    6
    Data file
    data/ecmascript-regex.json

    Code moduleMIT8 files, 15.4 KBreads files, runs commands

  13. JSON Schema 2020-12 tests for regexes with non-BMP characters

    non-bmp-regex.json

    JSON Schema 2020-12 optional tests for regexes with non-BMP (astral) characters: 2 rows with a JSON Schema, a checked loader and tests.

    Rows
    2
    Data file
    data/non-bmp-regex.json

    Code moduleMIT8 files, 15.0 KBreads files, runs commands

  14. ListCodeReviews request cases (codeguru-reviewer)

    GET /codereviews#Type parameters

    Isolated constraint checks for GET /codereviews#Type parameters; 30 case jobs.

    Operation
    GET ListCodeReviews
    API
    amazonaws.com/codeguru-reviewer, version 2019-09-19

    Contract schemaMIT AND Apache-2.042 files, 92.6 KBreads files, runs commands

  15. CreateSipRule request cases (chime)

    POST /sip-rules request

    Isolated constraint checks for POST /sip-rules request; 21 case jobs.

    Operation
    POST CreateSipRule
    API
    amazonaws.com/chime, version 2018-05-01

    Contract schemaMIT AND Apache-2.034 files, 79.8 KBreads files, runs commands

  16. SearchProfiles request cases (customer-profiles)

    POST /domains/{DomainName}/profiles/search request

    Isolated constraint checks for POST /domains/{DomainName}/profiles/search request; 21 case jobs.

    Operation
    POST SearchProfiles
    API
    amazonaws.com/customer-profiles, version 2020-08-15

    Contract schemaMIT AND Apache-2.034 files, 80.1 KBreads files, runs commands

  17. ListContacts request cases (groundstation)

    POST /contacts request

    Isolated constraint checks for POST /contacts request; 17 case jobs.

    Operation
    POST ListContacts
    API
    amazonaws.com/groundstation, version 2019-05-23

    Contract schemaMIT AND Apache-2.030 files, 74.6 KBreads files, runs commands

  18. ListAddons request cases (eks)

    GET /clusters/{name}/addons parameters

    Isolated constraint checks for GET /clusters/{name}/addons parameters; 20 case jobs.

    Operation
    GET ListAddons
    API
    amazonaws.com/eks, version 2017-11-01

    Contract schemaMIT AND Apache-2.033 files, 78.3 KBreads files, runs commands

Give your agent these components

Your harness downloads them through Baltor with Pro, $49 a month. Cancel any time from your account page.

Get started

More from Corner cases