dox_annotation 3.1.3
dox_annotation: ^3.1.3 copied to clipboard
Dox annotation for dox framework
3.1.3 #
- Version bump only, to match the other packages.
3.1.2 #
- Version bump only, to match the other packages.
3.1.1 #
- Version bump only, to match the other packages.
3.1.0 #
- New:
id()onIAuth, soreq.auth?.id()works. It gives the primary key of the logged-in user from theid()of the auth class (likeAuth().id()ofdox_auth), or null. It is an extension (IAuthHelpers), so a class that implementsIAuthdoes not need to change. For a guest,req.authis null.
3.0.2 #
- Removed:
ICacheDriverandIStorageDriver. Nothing used them. For a cache driver, useCacheDriverfromdox_cache. - Tests for
IHttpException.toResponse().
3.0.1 #
- Version bump only, to match the other packages.
3.0.0 #
- The first stable release.
3.0.0-rc.1 #
IDoxRequest.authis now a field (getter and setter), not only a getter. The auth is kept apart from the input.
3.0.0-alpha.17 #
- Version bump only, to match the other packages.
3.0.0-alpha.16 #
- Version bump only, to match the other packages.
3.0.0-alpha.15 #
- Version bump only, to match the other packages.
3.0.0-alpha.14 #
- New:
@Security.bearer(format: 'API key')and@Security.apiKey(header: 'X-API-Key'). Put it above a middleware class to show its login scheme in the OpenAPI docs.
3.0.0-alpha.13 #
- Version bump only, to match the other packages.
3.0.0-alpha.12 #
- Version bump only, to match the other packages.
3.0.0-alpha.11 #
- Version bump only, to match the other packages.
3.0.0-alpha.10 #
- Version bump only, to match the other packages.
3.0.0-alpha.9 #
- New:
@Inject(). Put it above a class anddox_builderadds the class to the Dox container.@Inject(singleton: false)makes a new instance each time.
3.0.0-alpha.8 #
- Version bump only, to match the other packages.
3.0.0-alpha.7 #
- Breaking:
IDox,IDoxWebsocketandWebsocketEventare removed. They were only used bydox_websocket.
3.0.0-alpha.6 #
- Version bump only, to match the other packages.
3.0.0-alpha.5 #
- New
timestampsoption on@DoxModel.timestamps: falseturns offcreated_atandupdated_at, like$timestamps = falsein Laravel.createdAt: nullorupdatedAt: nullturns off one of them. - New
primaryKeyTypeoption on@DoxModel. UseprimaryKeyType: Stringfor a UUID key. The default isint. - Fix:
IHttpException.toResponse()now returns{"code": errorCode, "message": message}for a text message, so the client gets theerrorCode. AMapmessage is returned as it is.
3.0.0-alpha.4 #
- Version bump only, to match the other packages.
3.0.0-alpha.3 #
- Version bump only, to match the other packages.
3.0.0-alpha.2 #
- Needs Dart 3.13 or newer.
- All dependencies updated to their latest versions.
- OpenAPI annotations, all optional:
@Summary,@Description,@Tags,@Request,@Body,@Query,@Response,@ApiDeprecated,@ApiIgnore,@DoxController. Lower case names work too (@summary(...)), except@Response. - The DTO annotations (
@Dto,@Length,@Email, ...) live indox_validation.dox_coreexports them. IDoxRequesthas novalidate()and noprocessInputMapper()any more. Use a DTO.- Breaking (small): these names are exported by
dox_coretoo. If a file also imports a package with aRequestorResponseclass (likepackage:http) without a prefix, add a prefix to that import. - New
@DoxEnv()and@EnvKey('X')for the typed env class.
3.0.0-alpha.1 #
- Version 3 of Dox. All Dox packages now share one version.
- Needs Dart 3.6 or newer.
- See the release notes for all main changes.
1.0.5 #
- Add IDoxMiddleware interface
1.0.5-alpha1.9 #
- Remove auth annotation
1.0.4 #
- Initial version.