Skip to content

Releases: nelmio/NelmioApiDocBundle

v3.9.1: Update templates comment path for bundle override (#1864)

27 Aug 15:09
1306106
Compare
Choose a tag to compare
## Changelog

Fix the comment path from SwaggerUI to SwaggerUi since case does matter for template override to work.

Add compound constraints support

18 Jul 17:04
06bc513
Compare
Choose a tag to compare
Merge pull request #1851 from javiereguiluz/patch-3

[Doc] Fix some minor RST issues

v4.3.0: Merge pull request #1829 from nelmio/PROPACCESS

07 Jun 17:34
40dfcf4
Compare
Choose a tag to compare
  • Allow @Area on controller classes (#1528)
  • Add support for php 8 constraint attributes (#1789)
  • Fix Symfony 5.3 support (#1808)
  • Check whether min/max are set on constraints (#1823)

v3.9.0

07 Jun 17:35
75794a7
Compare
Choose a tag to compare
  • Add support for php 8 constraint attributes (#1789)
  • Fix Symfony 5.3 support (#1808)

2.13.5: Merge pull request #1799 from phansys/config

23 Mar 07:11
1581495
Compare
Choose a tag to compare

v4.2.0: Apply `enum` from Choice Constraints to Items When Choice is Multiple…

19 Feb 08:48
883d7b6
Compare
Choose a tag to compare
… (#1784)

* Apply `enum` from Choice Constraints to Items When Choice is Multiple

Otherwise JSON schema like this is generated:

```
"property": {
  "type": "array",
  "enum": ["one", "two", "three"],
  "items": {
    "type": "string"
  }
}
```

With this change, however, this schema is generated:

```
"property": {
  "type": "array",
  "items": {
    "type": "string",
    "enum": ["one", "two", "three"]
  }
}
```

A possible downside here is that the symfony constraint stuff happens
before types are figured out from PHPDoc. So it's _possible_ to end up
with something that won't validated. Take something like this:

```
/**
 * @Assert\Choice(multiple=true, choices={"..."})
 * @var string
 */
```

This would generate:

```
"property": {
  "type": "string",
  "items": {
    "enum": ["..."]
  }
}
```

* Fix CS

* cs

* more cs

* fix tests

Co-authored-by: Guilhem Niot <guilhem@gniot.fr>

v3.8.2

19 Feb 08:49
Compare
Choose a tag to compare
Use annotations reader without cache

v4.1.1: Fix a regression about manual paths in operation no longer being take…

27 Dec 18:16
Compare
Choose a tag to compare

v3.8.1

27 Dec 18:17
820c058
Compare
Choose a tag to compare
Update build status with github actions

Adds php 8 support and extend the documentation of form types with the support of `@OA\Schema`

11 Dec 15:35
a9e8db4
Compare
Choose a tag to compare
Fix the tests (#1761)

* Bump phpunit-bridge

* Bump many dependencies