4 Commits
Author SHA1 Message Date
Akash SantraandJamie Howard ff8912a54f fix(openapi): correctly merge plugin router prefix with route paths (#25616)
* fix(openapi): correctly merge plugin router prefix with route paths

* fix(openapi): respect route-level prefix and use Core.Router type

* test(openapi): add unit tests for plugin route prefix handling

---------

Co-authored-by: Jamie Howard <48524071+jhoward1994@users.noreply.github.com>
2026-03-09 14:13:38 +00:00
Ben Irvin 7786d4dcde fix: feature works and rename addBodyParams to addInputParams (#25552)
* fix: add params actually works

* fix: rename addInputParams

* test: fix register timing

* chore: update getstarted

* test(api): remove ai comment

* revert: do not merge in type unneccessarily

* revert: do not add type to route
2026-02-25 17:34:56 +01:00
Ben Irvin 79a590a581 security(feat): add strictParam, addQueryParams, addBodyParams (#25528) 2026-02-24 13:51:33 +01:00
7af2e99241 Add new @strapi/openapi package (#24024)
* chore(openapi): add new @strapi/openapi package with initial setup (#23173)

* enhancement(openapi): add routes collection (#23182)

* chore(openapi): add new @strapi/openapi package with initial setup and configuration

* fix: lint the test folder

* chore(openapi): add coverage/ to .eslintignore for better linting exclusion

* test(openapi): update Jest config with refined test paths and coverage

* chore: remove unused test and update openapi dependencies

* feat(openapi): add route providers, collector, and matcher

* test(openapi): add unit tests for route matching and providers

* fix: make the AbstractRoutesProvider constructor public

* chore: update test paths and imports to simplify structure

* test: update route provider tests to use dynamic fixture lengths

* feat: add basic openapi document generation (#23365)

* chore: update openapi dependencies

* feat(openapi): advanced schema generation (#23467)

* chore: rename openapi:generate CLI command to openapi generate (#23610)

* chore(openapi): add experimental warning message for OpenAPI generation feature (#23608)

Co-authored-by: Jamie Howard <jhoward1994@gmail.com>

* chore: update OpenAPI types to OpenAPIV3_1 across the codebase (#23609)

* chore: merge origin/develop

* chore: update zod dependency from beta version to 3.25.67 across the codebase using zod/v4 where needed

* fix(strapi): add output option for openapi generation command (#23849)

* feat(core): add uid transformation utility for openapi compliant names (#23833)

* feat(core): add uid transformation utility for openapi compliant names

* chore: version openapi to 5.16.1

* chore(core): update uid parameter to use internal types

* fix(core): simplify global registry check

* fix(core): remove unnecessary type assertion

* fix(core): add type assertions in validation attributes

* fix(core): remove unused import

* chore: update @strapi/openapi to 5.18.1

* Add zod schema validation to content api routes (#23886)

* feat(i18n): zod validation for locale content api routes

* feat(email): integrate zod for email content api routes

* feat(upload): wip partial zod route validation

* feat: add validation for upload and ctb content api routes (#23924)

* feat: add validation for content API routes and upload

* fix: fix linting errors and prettier error

* fix: add missing schemas

* chore(content-type-builder): more accurate zod descriptions

* Centralise AbstractRouteValidator to strapi utils (#23962)

* chore(utils): centralise abstractroutevalidator in utils for package use and schema aware extension in strapi core

* chore(core): update query parameter transformer usage in convert-query-params tests

* feat(core): enhance schema validation error handling and logging

* fix: revert incorrect changes

---------

Co-authored-by: Jamie Howard <jhoward1994@gmail.com>
Co-authored-by: Jamie Howard <48524071+jhoward1994@users.noreply.github.com>

* feat(users-permissions): zod schemas for content-api routes (#23997)

* feat(users-permissions): zod schemas for content-api routes

* fix(users-permissions): formatting

* chore: include content type for API route request body

---------

Co-authored-by: Ziyi <ziyi.yuan@strapi.io>

* chore: minor clean up

---------

Co-authored-by: Jean-Sébastien Herbaux <jean-sebastien.herbaux@epitech.eu>
Co-authored-by: Ziyi <ziyi.yuan@strapi.io>
2025-07-28 12:02:09 +01:00