Skip to content

[BUG] Model invalid when AME adds 0 (zero) to sample payload for positiveInteger #301

@CarlyBabee

Description

@CarlyBabee

How: List of performed steps

  • Create aspect model with a Characteristic that has dataType:positiveInteger.
  • Do not add example value to Property.
  • Generate sample JSON payload.
  • Error states "Failed to generate JSON Sample Invalid Aspect Model"

What: Actual result vs expected result
Actual result = error and no generated JSON

Expected = sample JSON payload

Where: (e.g. component, version, url, your system info)
AME version:
5.6.1

SAMM version:
2.1.0

ESMF SDK version:
2.7.0

Input (files/screenshots)

Output (files/screenshots)

Additional context (e.g. references)
The error is caused by AME adding a zero value to the sample payload. This is not allowed for the dataType positiveInteger which causes the error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    acknowledgedHas been viewed by one of the maintainers and is ready for further work, discussion or other steps.bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions