Repository navigation
feat(api): mark custom actions, require utils ^0.8.0 and api-configuration ^0.9.0 - #33
Merged
Merged
Conversation
…ration-bundle ^0.9.0 [*] The utils bundle 0.8 evaluates the custom_action marker and the api-configuration bundle 0.9 is the first release built against it. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The 14 HTTP operations that are neither CRUD nor an input schema carry extraProperties custom_action => true, the marker api-platform-utils-bundle 0.8 turns into schema:Action entries of the Hydra documentation. A metadata test pins the exact set and that the resource label survives the merge. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Walks the class operations and the entrypoint properties of /api/docs.jsonld and expects exactly the 14 marked operations under /api/flowable as schema:Action entries, titled by their operation name. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
… the README [*] Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
composer.jsonrequiresdmstr/api-platform-utils-bundle^0.8.0(was^0.6.0) anddmstr/api-configuration-bundle^0.9.0(was^0.7).dmstr/openapi-json-schema-bundlestays^0.5.0 || ^0.6.0.extraProperties: ['custom_action' => true], the marker utils 0.8 turns intoschema:Actionentries of the Hydra documentation:POST /decisions/execute,/deployments/upload,/dmn_deployments/upload,/event_deployments/upload,/event_instances,/executions/{id}/trigger,/external_worker_jobs/acquire,/external_worker_jobs/{id}/{complete,fail,bpmnError,unacquire},/process_definitions/{id}/start,/tasks/{id}/completeandGET /jobs/{id}/stacktrace.input_schemaGETs,POST /process_instances, the other CRUD operations includingDELETE, and the MCP tools. No operation behaves differently.Tests
tests/Metadata/CustomActionMarkerTest.phppins the exact set on the attribute metadata (stricttrue, resourcelabelkept).tests/Http/CustomActionHydraDocumentationTest.phppins the 14 actions under/api/flowable/in/api/docs.jsonld(schema:Action,hydra:title,@idorhydra:uriTemplate).POST /process_instances, or using1instead oftrueturns them red; a marker on an MCP tool does not.OK (1428 tests, 7193 assertions)with utils 0.8.1 and api-configuration 0.9.0.🤖 Generated with Claude Code