IBM Support

IT15609: JSON SCHEMA COMPILATION FAILS WHEN SOME PROPERTY VALUES ARE LARGER THAN 999999

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • When compiling a JSON field value, if a property value is
    larger than 999999, this will cause the validation to fail. For
    example:
    {
        "$schema": "http://json-schema.org/draft-04/schema#",
        "type": "object",
        "properties": {
            "MyNum": {
                "type": "number",
                "minimum": 0,
                "maximum": 1000000
            }
        },
        "required": ["MyNum"]
    }
    The above JSON schema will fail during compilation with an
    error similar to:
    [FOAR0002] A numeric operation resulted in overflow.
    The affected properties are: "maximum", "minimum", "maxLength",
    "minLength", "maxItems", "minItems", "maxProperties", and
    "minProperties".
    

Local fix

  • Double lexical notation can be used to validate numbers larger
    than 999999:
    {
        "$schema": "http://json-schema.org/draft-04/schema#",
        "type": "object",
        "properties": {
            "MyNum": {
                "type": "number",
                "minimum": 0,
                "maximum": 1E+06
            }
        },
        "required": ["MyNum"]
    }
    

Problem summary

  • When compiling a JSON Schema, if a property value is larger than
     999999, this will cause the compilation to fail.
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    IT15609

  • Reported component name

    DATAPOWER

  • Reported component ID

    DP1234567

  • Reported release

    720

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2016-06-06

  • Closed date

    2016-09-06

  • Last modified date

    2016-09-06

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    DATAPOWER

  • Fixed component ID

    DP1234567

Applicable component levels

  • R720 PSY

       UP

  • R750 PSY

       UP



Document information

More support for: IBM DataPower Gateways
General

Software version: 7.2

Reference #: IT15609

Modified date: 06 September 2016