Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yceruto committed Jan 6, 2024
1 parent 00358e8 commit 0dc0030
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ class PostProductAction
- [x] Symfony's validation constraints definition using OpenAPI attributes:
- Example: `#[Property(minLength: 3, maxLength: 255)]`
- [x] Automatic controller response serialization (JSON format by default)
- [ ] Generate new endpoints from API spec (WIP) (based on `open-solid/open-api-assistant-bundle`)

## License

Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"type":"https:\/\/symfony.com\/errors\/validation","title":"Validation Failed","status":422,"detail":"status: This value should be of type OpenSolid\\Tests\\OpenApiBundle\\Functional\\App\\PostResourceAction\\Model\\ResourceStatus.\nname: This value is too short. It should have 3 characters or more.\nstatus: This value should not be null.","violations":[{"propertyPath":"status","title":"This value should be of type OpenSolid\\Tests\\OpenApiBundle\\Functional\\App\\PostResourceAction\\Model\\ResourceStatus.","template":"This value should be of type {{ type }}.","parameters":{"{{ type }}":"OpenSolid\\Tests\\OpenApiBundle\\Functional\\App\\PostResourceAction\\Model\\ResourceStatus","hint":"The data must belong to a backed enumeration of type OpenSolid\\Tests\\OpenApiBundle\\Functional\\App\\PostResourceAction\\Model\\ResourceStatus"}},{"propertyPath":"name","title":"This value is too short. It should have 3 characters or more.","template":"This value is too short. It should have {{ limit }} character or more.|This value is too short. It should have {{ limit }} characters or more.","parameters":{"{{ value }}":"\"fo\"","{{ limit }}":"3","{{ value_length }}":"2"},"type":"urn:uuid:9ff3fdc4-b214-49db-8718-39c315e33d45"},{"propertyPath":"status","title":"This value should not be null.","template":"This value should not be null.","parameters":{"{{ value }}":"null"},"type":"urn:uuid:ad32d13f-c3d4-423b-909a-857b961eb720"}]}
{"type":"https:\/\/symfony.com\/errors\/validation","title":"Validation Failed","status":422,"detail":"status: This value should be of type OpenSolid\\Tests\\OpenApiBundle\\Functional\\App\\PostResourceAction\\Model\\ResourceStatus.","violations":[{"propertyPath":"status","title":"This value should be of type OpenSolid\\Tests\\OpenApiBundle\\Functional\\App\\PostResourceAction\\Model\\ResourceStatus.","template":"This value should be of type {{ type }}.","parameters":{"{{ type }}":"OpenSolid\\Tests\\OpenApiBundle\\Functional\\App\\PostResourceAction\\Model\\ResourceStatus","hint":"The data must belong to a backed enumeration of type OpenSolid\\Tests\\OpenApiBundle\\Functional\\App\\PostResourceAction\\Model\\ResourceStatus"}}]}

0 comments on commit 0dc0030

Please sign in to comment.