janephp

Jane is a set of libraries to generate Models & API Clients based on JSON Schema / OpenAPI specs

MIT License

Downloads
198.6K
Stars
580
Committers
68

Bot releases are hidden (Show)

janephp - v5.2.1

Published by Korbeil almost 5 years ago

Changed

  • [OpenApi] GH#174 Better handling of nullable fields in Normalizer
  • [OpenApi] GH#175 Handling of nullable attribute on query parameters

Fixed

  • Fixing Gitsplit workflow
  • [AutoMapper] GH#179 Fixing incompatible changes in Symfony 5.0
janephp - v5.2.0

Published by Korbeil almost 5 years ago

Added

  • GH Actions for tests & cs-check
  • [JsonSchema] GH#167 add deprecated behavior (for classes & properties)

Changed

  • [JsonSchema] GH#132 upgrade specs to draft-06
  • [JsonSchema] GH#134 upgrade specs to draft-07
  • [JsonSchema] GH#136 upgrade specs to 2019-09 (last version)
  • [OpenApi] GH#137 upgrade specs to 3.0.2 (last version)

Fixed

  • [OpenApi] GH#143 Check if object for normalizers supportNormalization method
  • [JsonSchema] GH#141 Better nullable checks on generated normalizers
janephp - v4.5.3

Published by Korbeil almost 5 years ago

Fixed

[OpenAPI] Conflict with jane-php/open-api < 4.5.2 #164

janephp - v4.5.2

Published by Korbeil almost 5 years ago

Fixed

[OpenAPI] Remove typehint to be compatible with both HTTPlug & PSR17 clients #163

janephp - v4.5.1

Published by Korbeil about 5 years ago

Fixed

  • [OpenAPI] Conflict with jane < 4.5 for OpenApi runtime to avoid problems with PSR-18 Client generation #138
janephp - v4.5.0 - PSR-18 Client Generation

Published by Korbeil about 5 years ago

Added

  • [OpenAPI] Support for PSR18 client generation #128

Fixed

  • [OpenAPI] Generated endpoint in case of uppercase first letter in path parameter #79
janephp - v5.1.1

Published by Korbeil about 5 years ago

Fixed

  • [OpenAPI] GH#129 Missing exception interfaces
janephp - v5.1.0 - PSR-18 Client Generation

Published by Korbeil about 5 years ago

Added

  • [OpenAPI] GH#120 Support for PSR18 client generation
  • [Documentation] GH#122 OpenAPI example

Changed

  • [Documentation] GH#124 Update documentation with new PSR-18 Client

Fixed

  • [OpenAPI] GH#118 Correct discriminator classname snake_case into camelCase for denormalization
  • [OpenAPI] GH#121 Fix nullable property support
  • [OpenAPI] GH#123 / GH#125 Check if path exists before using it in *ClientGenerator
  • [OpenAPI] GH#126 Fix reference in endpoint parameter schema

Removed

  • [OpenAPI] GH#119 Removing OpenAPI v2 support

Deprecated

  • [OpenAPI] GH#120 Jane\OpenApiRuntime\Client\Psr7HttplugClient deprecated, use Jane\OpenApiRuntime\Client\Psr18Client instead.
  • [OpenAPI] GH#120 Jane\OpenApiRuntime\Client\Psr7HttplugEndpoint deprecated, use Jane\OpenApiRuntime\Client\Psr7Endpoint instead.
  • [OpenAPI] GH#120 Jane\OpenApiRuntime\Client\Psr7HttplugEndpointTrait deprecated, use Jane\OpenApiRuntime\Client\Psr7EndpointTrait instead.
janephp - v5.0.1

Published by Korbeil about 5 years ago

Fixed

  • [JsonSchema] GH#109 Support for default value for array type
  • [OpenAPI] GH#115 Fix Content-Type comparison in generated endpoints
janephp - v5.0.0 - OpenAPI v3.0 support

Published by Korbeil about 5 years ago

Added

  • BC-BREAK All libraries now use php-parser v4
  • [OpenAPI] BC-BREAK Use the openapi v3 specification (v2 is no longer supported)
  • [OpenAPI] BC-BREAK No more asynchronous code generation (sync and async api can be the same on php 7.3 by using ext-async)
  • PHP 7.2 is the minimum PHP version required

Fixed

  • [OpenAPI] GH#101 Remove warning when using Generate command
janephp -

Published by Korbeil over 5 years ago

  • #87 nullable properties
  • #90 checking if helper function exists before creating it
  • #85 add null type to PHPDoc for getters/setters
janephp -

Published by joelwurtz about 6 years ago

janephp - 4.0.0

Published by joelwurtz over 6 years ago

Added

  • BC-BREAK New namespace and repository name due to using a new monolith repository
  • BC-BREAK JanePHP now require and generate code for PHP 7.1
  • BC-BREAK Config file is now mandatory, console client does not provide anymore options
  • BC-BREAK There is no more Resource file, all calls are now done in an unique Client class
  • [OpenAPI] BC-BREAK Arguments for each endpoint may be different, they are now split between query, form and headers.
  • [OpenAPI] BC-BREAK Response with 400 to 599 status code will know throw custom generated exception instead of returning an object
  • [OpenAPI] BC-BREAK Base path is no more present in the url as you can use a HTTPlug plugin for that
  • [OpenAPI] New documentation available at https://jane.readthedocs.io/en/latest/
  • [OpenAPI] Add Optional Asynchronous Client Generation (through async option)
  • [OpenAPI] Add support for file in form parameters which will create a multipart stream
  • [OpenAPI] Better method naming when dealing with special characters thanks to @pyrech
  • [OpenAPI] New class Client generated which will contains all endpoints of the API
  • [OpenAPI] New factory method for the client which provide better DX to start using a Generated Client
  • [OpenAPI] Add support for global parameters
  • [OpenAPI] Support Symfony 4
  • [OpenAPI] Each endpoint have its own class, this helps extending a generated Client.
  • [OpenAPI] Add support for binary format
  • [Jane] Add a not strict mode, which generate more permissive normalizers (allowing null / not
    defined properties in several places)
  • [Jane] Add property description in doc block comment
  • [Jane] Add support for additionalProperties / patternProperties with existing properties

Fixed

  • [OpenAPI] When a response does have a Schema which is not an object, it will not return the json_decoded value of the data
    instead of null
  • [OpenAPI] Remove base path from method name
  • [OpenAPI] Fix references having a space in the name
  • [OpenAPI] Fix Content-Type and Accept headers
  • [Jane] Fix all-of not merging properties with the same name