Skip to content

Conversation

@damienalexandre
Copy link
Member

Jane 6.0 fixes #12, which is great news.

This PR adds tests for Jane support by building a schema and using the DTO for Indexing and Search.

@damienalexandre damienalexandre requested a review from Korbeil May 6, 2020 16:40
Copy link
Member

@Korbeil Korbeil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, understand that with the new Symfony recipe, all this Serializer setup won't be needed and Jane's Normalizers will be autowired in Symfony Serializer ~

new ArrayDenormalizer(),
new JaneObjectNormalizer(),
];
$encoders = [new JsonEncoder(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You only need to do new JsonEncoder() to have the same result

@damienalexandre
Copy link
Member Author

I took the setup from https://jane.readthedocs.io/en/latest/documentation/JsonSchema.html#using ^^

Also the tests dont use Flex so I need to build everything here.

@damienalexandre damienalexandre merged commit 9436ede into master May 7, 2020
@damienalexandre damienalexandre deleted the jane-and-fixes branch May 7, 2020 08:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Compatibility with Jane is not possible without hacky code

3 participants