Additions to AttributeAnnotationFactory#1767
Conversation
* Changed method arguments to generate from OA/Schemas, not just OA/Properties
|
Sorry for not responing - busy times... Also, this kind of overlaps with my type cleanup work, so I need to have a bit of a think... Ensuring that there are unique contexts is definitely useful. |
|
Could you give an example of how/why there might be a |
|
Not exactly exact OA/Schema, but for example, a custom attribute extending OA/Schema, that targets method parameters and gets filled from respective docblock Closest practical example would be a Laravel Eloquent model that has JSON field (which would be I am brainstorming it myself currently (see onekone/lore repo, but it's deeply wip), so forgive me if I'm not convincing enough |
|
Closing - stale and superseded by the new |
|
Sorry for long response, was a bit busy on personal and work side of things Yeah, it's fine, current implementation also works great |
While developing my own set of helper annotations, noticed that context object lacks information to which method argument attribute is attached to (case is to use it in processing* to implicitly fill out attributes), so this changes that, and adds reflection instances for good measure
Also makes it so all OA/Schemas in arguments are evaluated, and not just OA/Properties
* And in a hacky way, during validation