Skip to content

validation since 5.2.2 is broken because of [id] field #458

Closed
@eugene-matvejev

Description

@eugene-matvejev

Hello guys, I noticed that with 5.2.2 validation is broken, if ID field is present.

I made side project to demonstrate issue:
Working: eugene-matvejev/symfony-battleship#754
Broken: eugene-matvejev/symfony-battleship#755

json schemas:
https://github.com/eugene-matvejev/battleship-game-api-json-schema

output

tests:behat:
    [behat] ..............F
    [behat] 
    [behat] --- Failed steps:
    [behat] 
    [behat] 001 Example: | POST   | /api/game-init           | game.init.request.1.opponent.json | game.init.response.schema.json    | # tests/behat/suites/api/api.json.validation.against.schema.feature:11
    [behat]       Then validate response against schema "game.init.response.schema.json"                                               # tests/behat/suites/api/api.json.validation.against.schema.feature:7
    [behat]         Unable to resolve URI 'properties/collection' from base '' (JsonSchema\Exception\UriResolverException)
    [behat] 
    [behat] 6 scenarios (5 passed, 1 failed)
    [behat] 15 steps (14 passed, 1 failed)
    [behat] 0m0.39s (22.07Mb)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions