Skip to content

[Java] Validate correctly the entire structure of specs for each Model type #2464

@Batta32

Description

@Batta32

Describe the bug
A clear and concise description of what the bug is.
The current unit tests of Java doesn't validate correctly the spec structure for each model type. For example the DateParser.json specs, contains start property which is not validated in the DateTimeTest.java causing false positives.

To Reproduce
Steps to reproduce the behavior:

  1. Go to DateTimeTest
  2. See the structure that validates the assertResultsDateTime method
  3. Compare the validated structure with the DateParser.json specs
  4. See that not all the properties are validated

Expected behavior
A clear and concise description of what you expected to happen.
All the models should be correctly validated, checking the correct properties against to the specs.

Sample input/output
As applicable, add examples of text input and json output to help explain the problem.
-

Platform (please complete the following information):

  • Platform: Java

Additional context
Add any other context about the problem here.
See discussion of the PR #2461 as the NumberTest was updated to cover the end and start properties.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions