Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.2.0] - 2025-03-14

### Removed
- Dto tests

## [0.1.0] - 2025-03-14

### Deprecated
- mark classes in namespace FreeElephants\JsonApiToolkit\DTO are deprecated

Expand Down Expand Up @@ -132,7 +139,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
- FastRoute Dispatcher generation from swagger operationIds

[Unreleased]: https://github.com/FreeElephants/json-api-php-toolkit/compare/0.0.15...HEAD
[Unreleased]: https://github.com/FreeElephants/json-api-php-toolkit/compare/0.1.0...HEAD
[0.1.0]: https://github.com/FreeElephants/json-api-php-toolkit/compare/0.0.15...0.1.0
[0.0.15]: https://github.com/FreeElephants/json-api-php-toolkit/compare/0.0.14...0.0.15
[0.0.14]: https://github.com/FreeElephants/json-api-php-toolkit/compare/0.0.13...0.0.14
[0.0.13]: https://github.com/FreeElephants/json-api-php-toolkit/compare/0.0.12...0.0.13
Expand Down
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
* [x] Build FastRoute Dispatcher by defined in OAS3 `operationsIds` values
* [x] Serialize Doctrine entities with Neomerx schemas (resolve issue https://github.com/neomerx/json-api/issues/40)
* [ ] Generate PHP Data Transfer Objects by OAS3 `reponseBody` and `requestBody` schema reference compliance with json:api
* [x] Map Psr Requests to Data Transfer Objects
* [x] Validate incoming Psr Requests with swagger specification and user defined rules, and build Psr Response with json:api errors
* [x] Map application models to Psr Response compliance with json:api structure

Expand All @@ -26,11 +25,14 @@ Available in [/docs](/docs).
#### Index:
1. [Routing](/docs/routing.md)
1. [Serialize doctrine entities](/docs/doctrine.md)
1. [DTO from psr server request](/docs/dto-psr7.md)
1. [Validation](/docs/validation.md)

## Development

All dev env is dockerized. Your can use make receipts and `bin/` scripts without locally installed php, composer.

For run tests with different php version change `PHP_VERSION` value in .env and rebuild image with `make build`.

## See also:

Package for map PSR-7 http messages with Json Api structure to PHP DTO: https://github.com/FreeElephants/json-api-dto
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
"doctrine/persistence": "^2.0|^3.0",
"fig/http-message-util": "^1.0",
"free-elephants/i18n": "^0.0.1",
"free-elephants/json-api-dto": "^0.0.1",
"laminas/laminas-stratigility": "^3.2",
"laravel-json-api/neomerx-json-api": "^5.0.2",
"league/openapi-psr7-validator": "0.19 - 0.22",
Expand All @@ -41,6 +40,7 @@
"suggest": {
"doctrine/orm": "^2.7",
"free-elephants/di": "*",
"free-elephants/json-api-dto": "*",
"laminas/laminas-httphandlerrunner": "*",
"nyholm/psr7": "^1.2"
},
Expand Down
7 changes: 0 additions & 7 deletions docs/dto-psr7.md

This file was deleted.

11 changes: 0 additions & 11 deletions src/FreeElephants/JsonApiToolkit/DTO/AbstractAttributes.php

This file was deleted.

14 changes: 0 additions & 14 deletions src/FreeElephants/JsonApiToolkit/DTO/AbstractDocument.php

This file was deleted.

11 changes: 0 additions & 11 deletions src/FreeElephants/JsonApiToolkit/DTO/AbstractRelationships.php

This file was deleted.

14 changes: 0 additions & 14 deletions src/FreeElephants/JsonApiToolkit/DTO/AbstractResourceObject.php

This file was deleted.

11 changes: 0 additions & 11 deletions src/FreeElephants/JsonApiToolkit/DTO/BaseKeyValueStructure.php

This file was deleted.

This file was deleted.

11 changes: 0 additions & 11 deletions src/FreeElephants/JsonApiToolkit/DTO/RelationshipToOne.php

This file was deleted.

11 changes: 0 additions & 11 deletions src/FreeElephants/JsonApiToolkit/DTO/ResourceIdentifierObject.php

This file was deleted.

84 changes: 0 additions & 84 deletions tests/FreeElephants/JsonApiToolkit/DTO/DocumentTest.php

This file was deleted.

10 changes: 0 additions & 10 deletions tests/FreeElephants/JsonApiToolkit/DTO/Example/Attributes.php

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading