@polymorphism-tech/morph-spec 8.38.0 → 8.41.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CLAUDE.md +20 -9
- package/README.md +2 -2
- package/bin/morph-spec.js +60 -43
- package/claude-plugin.json +1 -1
- package/docs/CHEATSHEET.md +1 -1
- package/docs/QUICKSTART.md +1 -1
- package/framework/CLAUDE.md +4 -3
- package/framework/MORPH.md +10 -9
- package/framework/agents.json +43 -26
- package/framework/docs/CLI.md +7 -5
- package/framework/evals/rubrics/code-quality.md +4 -4
- package/framework/evals/rubrics/condensed.md +2 -2
- package/framework/hooks/README.md +1 -1
- package/framework/hooks/claude-code/core/telemetry-log.js +39 -8
- package/framework/hooks/claude-code/core/worktree-create.js +22 -6
- package/framework/hooks/shared/git-paths.js +38 -5
- package/framework/mcp/registry.json +58 -66
- package/framework/rules/infrastructure-standards.md +0 -1
- package/framework/rules/morph-workflow.md +9 -4
- package/framework/skills/core/create-umbraco-lp/SKILL.md +1 -1
- package/framework/skills/core/migrate-lp-to-umbraco/SKILL.md +1 -1
- package/framework/skills/core/morph-apply/SKILL.md +59 -25
- package/framework/skills/core/morph-brainstorming/SKILL.md +1 -1
- package/framework/skills/core/morph-eval/SKILL.md +1 -1
- package/framework/skills/core/morph-hotfix/SKILL.md +2 -2
- package/framework/skills/core/morph-implement/SKILL.md +48 -24
- package/framework/skills/core/morph-media/SKILL.md +2 -2
- package/framework/skills/core/morph-plan/SKILL.md +10 -3
- package/framework/skills/core/morph-proposal/SKILL.md +1 -1
- package/framework/skills/core/morph-review/SKILL.md +1 -1
- package/framework/skills/core/morph-stack-scan/SKILL.md +1 -1
- package/framework/skills/core/morph-standards/SKILL.md +1 -1
- package/framework/skills/core/morph-uiux/SKILL.md +7 -6
- package/framework/standards/PROVENANCE.json +4 -4
- package/framework/standards/STANDARDS.json +9 -9
- package/framework/standards/ai-agents/context-providers.md +16 -26
- package/framework/standards/ai-agents/durable-workflows-hitl.md +15 -21
- package/framework/standards/ai-agents/modalities-image-gen.md +21 -25
- package/framework/standards/ai-agents/modalities-speech-to-text.md +4 -15
- package/framework/standards/ai-agents/modalities-text-to-speech.md +2 -11
- package/framework/standards/ai-agents/modalities-vision.md +1 -18
- package/framework/standards/ai-agents/prompt-sources.md +0 -4
- package/framework/standards/architecture/code-comments.md +52 -16
- package/framework/standards/backend/dotnet/testing.md +4 -2
- package/framework/standards/backend/integrations/neon-auth/neon-auth.md +63 -50
- package/framework/standards/frontend/design-system/ai-image-generation.md +42 -28
- package/framework/standards/frontend/design-system/ai-video-generation.md +24 -9
- package/framework/standards/frontend/nextjs/testing.md +4 -2
- package/framework/standards/integration/mcp/mcp-tools.md +64 -126
- package/framework/templates/code/dotnet/abstractions/result.cs +0 -2
- package/framework/templates/code/dotnet/ai-agents/AgentBootstrap.cs.template +26 -39
- package/framework/templates/code/dotnet/ai-agents/EmbeddingService.cs.template +28 -68
- package/framework/templates/code/dotnet/ai-agents/ModelRegistry.cs.template +99 -117
- package/framework/templates/code/dotnet/ai-agents/PromptRepository.cs.template +2 -44
- package/framework/templates/code/dotnet/ai-agents/ResilientToolMiddleware.cs.template +40 -61
- package/framework/templates/code/dotnet/ai-agents/VectorSearchTool.cs.template +54 -107
- package/framework/templates/code/dotnet/ai-agents/model-registry.json.template +53 -58
- package/framework/templates/code/dotnet/contracts/contracts-vsa.cs +192 -281
- package/framework/templates/code/dotnet/database/migration.cs +49 -83
- package/framework/templates/code/dotnet/database/vector-entity.cs +2 -46
- package/framework/templates/code/dotnet/extensions/result-extensions.cs +0 -2
- package/framework/templates/code/dotnet/feature/validator.cs.hbs +11 -15
- package/framework/templates/code/dotnet/jobs/agent.cs +3 -51
- package/framework/templates/code/dotnet/jobs/job.cs +2 -97
- package/framework/templates/code/dotnet/test.cs +2 -87
- package/framework/templates/code/typescript/contracts.ts +140 -167
- package/framework/templates/dotnet/ai-kit/src/Morph.AiKit/Agents/AgentApi.cs +1 -48
- package/framework/templates/dotnet/ai-kit/src/Morph.AiKit/Agents/AgentFactory.cs +3 -79
- package/framework/templates/dotnet/ai-kit/src/Morph.AiKit/Agents/AgentFactoryOptions.cs +1 -70
- package/framework/templates/dotnet/ai-kit/src/Morph.AiKit/Agents/AgentSpec.cs +1 -47
- package/framework/templates/dotnet/ai-kit/src/Morph.AiKit/Agents/AgentSpecOptions.cs +2 -99
- package/framework/templates/dotnet/ai-kit/src/Morph.AiKit/AiKitAssemblyMarker.cs +0 -6
- package/framework/templates/dotnet/ai-kit/src/Morph.AiKit/Conversation/ConversationStore.cs +3 -88
- package/framework/templates/dotnet/ai-kit/src/Morph.AiKit/Conversation/IConversationStore.cs +1 -41
- package/framework/templates/dotnet/ai-kit/src/Morph.AiKit/Conversation/InMemoryConversationStore.cs +0 -21
- package/framework/templates/dotnet/ai-kit/src/Morph.AiKit/Evals/CountingChatClient.cs +1 -25
- package/framework/templates/dotnet/ai-kit/src/Morph.AiKit/Evals/EvalAssertion.cs +2 -63
- package/framework/templates/dotnet/ai-kit/src/Morph.AiKit/Evals/EvalCacheMissException.cs +0 -30
- package/framework/templates/dotnet/ai-kit/src/Morph.AiKit/Evals/EvalCacheOptions.cs +1 -52
- package/framework/templates/dotnet/ai-kit/src/Morph.AiKit/Evals/EvalCacheStamp.cs +3 -78
- package/framework/templates/dotnet/ai-kit/src/Morph.AiKit/Evals/EvalFixture.cs +4 -109
- package/framework/templates/dotnet/ai-kit/src/Morph.AiKit/Evals/EvalMode.cs +0 -22
- package/framework/templates/dotnet/ai-kit/src/Morph.AiKit/Evals/EvalQualityEvaluators.cs +1 -36
- package/framework/templates/dotnet/ai-kit/src/Morph.AiKit/Evals/EvalScenario.cs +2 -57
- package/framework/templates/dotnet/ai-kit/src/Morph.AiKit/Evals/EvalSummary.cs +0 -75
- package/framework/templates/dotnet/ai-kit/src/Morph.AiKit/Evals/OfflineChatClient.cs +2 -59
- package/framework/templates/dotnet/ai-kit/src/Morph.AiKit/Evals/ShortPathResponseCache.cs +4 -111
- package/framework/templates/dotnet/ai-kit/src/Morph.AiKit/Media/IMediaGenerator.cs +0 -34
- package/framework/templates/dotnet/ai-kit/src/Morph.AiKit/Media/IMediaProvider.cs +1 -57
- package/framework/templates/dotnet/ai-kit/src/Morph.AiKit/Media/MediaArtifact.cs +0 -19
- package/framework/templates/dotnet/ai-kit/src/Morph.AiKit/Media/MediaDisclosure.cs +2 -74
- package/framework/templates/dotnet/ai-kit/src/Morph.AiKit/Media/MediaGenerator.cs +2 -33
- package/framework/templates/dotnet/ai-kit/src/Morph.AiKit/Media/MediaIdempotencyKey.cs +1 -43
- package/framework/templates/dotnet/ai-kit/src/Morph.AiKit/Media/MediaJob.cs +1 -96
- package/framework/templates/dotnet/ai-kit/src/Morph.AiKit/Media/MediaJobId.cs +0 -13
- package/framework/templates/dotnet/ai-kit/src/Morph.AiKit/Media/MediaJobState.cs +0 -27
- package/framework/templates/dotnet/ai-kit/src/Morph.AiKit/Media/MediaPricing.cs +0 -33
- package/framework/templates/dotnet/ai-kit/src/Morph.AiKit/Media/MediaProvenance.cs +0 -31
- package/framework/templates/dotnet/ai-kit/src/Morph.AiKit/Media/MediaRequest.cs +3 -75
- package/framework/templates/dotnet/ai-kit/src/Morph.AiKit/Media/MediaResult.cs +0 -42
- package/framework/templates/dotnet/ai-kit/src/Morph.AiKit/Media/MediaReview.cs +0 -39
- package/framework/templates/dotnet/ai-kit/src/Morph.AiKit/Media/MediaSeams.cs +1 -55
- package/framework/templates/dotnet/ai-kit/src/Morph.AiKit/Media/MediaStore.cs +3 -59
- package/framework/templates/dotnet/ai-kit/src/Morph.AiKit/Media/MorphMedia.cs +0 -46
- package/framework/templates/dotnet/ai-kit/src/Morph.AiKit/Media/Providers/GoogleImageProvider.cs +3 -28
- package/framework/templates/dotnet/ai-kit/src/Morph.AiKit/Media/Providers/OpenAIImageProvider.cs +7 -61
- package/framework/templates/dotnet/ai-kit/src/Morph.AiKit/Media/Providers/VeoVideoProvider.cs +2 -37
- package/framework/templates/dotnet/ai-kit/src/Morph.AiKit/Middleware/IUsageCostSink.cs +1 -23
- package/framework/templates/dotnet/ai-kit/src/Morph.AiKit/Middleware/UsageCostMiddleware.cs +2 -82
- package/framework/templates/dotnet/ai-kit/src/Morph.AiKit/Middleware/UsageCostRecord.cs +1 -68
- package/framework/templates/dotnet/ai-kit/src/Morph.AiKit/Observability/MorphOpenTelemetryExtensions.cs +1 -62
- package/framework/templates/dotnet/ai-kit/src/Morph.AiKit/Observability/MorphTelemetryOptions.cs +2 -62
- package/framework/templates/dotnet/ai-kit/src/Morph.AiKit/Providers/IProviderClientFactory.cs +1 -25
- package/framework/templates/dotnet/ai-kit/src/Morph.AiKit/Providers/ModelAlias.cs +0 -124
- package/framework/templates/dotnet/ai-kit/src/Morph.AiKit/Providers/ModelRegistry.cs +1 -73
- package/framework/templates/dotnet/ai-kit/src/Morph.AiKit/Rag/DeltaIngest.cs +1 -66
- package/framework/templates/dotnet/ai-kit/src/Morph.AiKit/Rag/DeltaPlan.cs +0 -41
- package/framework/templates/dotnet/ai-kit/tests/Morph.AiKit.Tests/AgentFactoryTests.cs +2 -112
- package/framework/templates/dotnet/ai-kit/tests/Morph.AiKit.Tests/AgentSpecTests.cs +2 -43
- package/framework/templates/dotnet/ai-kit/tests/Morph.AiKit.Tests/ConversationStoreTests.cs +5 -110
- package/framework/templates/dotnet/ai-kit/tests/Morph.AiKit.Tests/DeltaIngestTests.cs +7 -103
- package/framework/templates/dotnet/ai-kit/tests/Morph.AiKit.Tests/Evals/EvalAssertionTests.cs +1 -42
- package/framework/templates/dotnet/ai-kit/tests/Morph.AiKit.Tests/Evals/EvalCacheMissTests.cs +1 -30
- package/framework/templates/dotnet/ai-kit/tests/Morph.AiKit.Tests/Evals/EvalCacheStampTests.cs +1 -19
- package/framework/templates/dotnet/ai-kit/tests/Morph.AiKit.Tests/Evals/EvalFailuresTests.cs +0 -48
- package/framework/templates/dotnet/ai-kit/tests/Morph.AiKit.Tests/Evals/EvalFixtureTests.cs +1 -29
- package/framework/templates/dotnet/ai-kit/tests/Morph.AiKit.Tests/Evals/EvalRefreshTests.cs +2 -38
- package/framework/templates/dotnet/ai-kit/tests/Morph.AiKit.Tests/Evals/EvalWorkspace.cs +1 -14
- package/framework/templates/dotnet/ai-kit/tests/Morph.AiKit.Tests/Evals/KitEvals.cs +4 -69
- package/framework/templates/dotnet/ai-kit/tests/Morph.AiKit.Tests/Evals/OfflineChatClientTests.cs +1 -10
- package/framework/templates/dotnet/ai-kit/tests/Morph.AiKit.Tests/Fakes/FakeChatClient.cs +1 -57
- package/framework/templates/dotnet/ai-kit/tests/Morph.AiKit.Tests/Fakes/FakeChatClientTests.cs +0 -26
- package/framework/templates/dotnet/ai-kit/tests/Morph.AiKit.Tests/Fakes/FakeClock.cs +1 -19
- package/framework/templates/dotnet/ai-kit/tests/Morph.AiKit.Tests/Fakes/FakeMediaProvider.cs +0 -32
- package/framework/templates/dotnet/ai-kit/tests/Morph.AiKit.Tests/Fakes/FakeProviderClientFactory.cs +0 -14
- package/framework/templates/dotnet/ai-kit/tests/Morph.AiKit.Tests/Fakes/FakeUsageCostSink.cs +0 -24
- package/framework/templates/dotnet/ai-kit/tests/Morph.AiKit.Tests/Fakes/InMemoryMediaStore.cs +0 -32
- package/framework/templates/dotnet/ai-kit/tests/Morph.AiKit.Tests/MediaAccessibilityTests.cs +0 -37
- package/framework/templates/dotnet/ai-kit/tests/Morph.AiKit.Tests/MediaAliasIsNotAnAgentTests.cs +0 -24
- package/framework/templates/dotnet/ai-kit/tests/Morph.AiKit.Tests/MediaDisclosureTests.cs +0 -78
- package/framework/templates/dotnet/ai-kit/tests/Morph.AiKit.Tests/MediaGeneratorTests.cs +0 -53
- package/framework/templates/dotnet/ai-kit/tests/Morph.AiKit.Tests/MediaIdempotencyKeyTests.cs +0 -44
- package/framework/templates/dotnet/ai-kit/tests/Morph.AiKit.Tests/MediaJobStateTests.cs +0 -44
- package/framework/templates/dotnet/ai-kit/tests/Morph.AiKit.Tests/MediaReviewTests.cs +0 -19
- package/framework/templates/dotnet/ai-kit/tests/Morph.AiKit.Tests/MediaStoreTests.cs +0 -24
- package/framework/templates/dotnet/ai-kit/tests/Morph.AiKit.Tests/ModelRegistryTests.cs +6 -48
- package/framework/templates/dotnet/ai-kit/tests/Morph.AiKit.Tests/SkeletonSmokeTests.cs +1 -13
- package/framework/templates/dotnet/ai-kit/tests/Morph.AiKit.Tests/TelemetryTests.cs +2 -71
- package/framework/templates/dotnet/ai-kit/tests/Morph.AiKit.Tests/UsageCostMiddlewareTests.cs +5 -100
- package/framework/templates/frontend/nextjs/Dockerfile.nextjs.hbs +39 -43
- package/framework/templates/frontend/nextjs/env.mjs.hbs +29 -32
- package/framework/templates/frontend/nextjs/page.tsx.hbs +21 -22
- package/framework/templates/frontend/nextjs/use-feature.ts.hbs +42 -54
- package/framework/templates/integrations/asaas-client.cs +332 -387
- package/framework/templates/integrations/asaas-webhook.cs +290 -351
- package/framework/templates/integrations/neon-auth-config.cs +9 -105
- package/framework/templates/project/validate.js +97 -120
- package/package.json +2 -2
- package/src/commands/dashboard/dashboard.js +80 -53
- package/src/commands/mcp/mcp-setup.js +37 -9
- package/src/commands/project/doctor.js +12 -6
- package/src/commands/project/init.js +6 -3
- package/src/commands/project/install-plugin-cmd.js +1 -1
- package/src/commands/project/update.js +5 -0
- package/src/commands/project/worktree.js +60 -4
- package/src/commands/state/gate-check.js +5 -0
- package/src/commands/tasks/dag.js +27 -4
- package/src/commands/validation/verify.js +22 -38
- package/src/dashboard/app/App.jsx +80 -16
- package/src/dashboard/app/components/ActivityFeed.jsx +172 -0
- package/src/dashboard/app/components/CommandPalette.jsx +155 -0
- package/src/dashboard/app/components/DetailPanel.jsx +47 -11
- package/src/dashboard/app/components/EntityLink.jsx +55 -0
- package/src/dashboard/app/components/ErrorBoundary.jsx +54 -0
- package/src/dashboard/app/components/FlowGraph.jsx +19 -17
- package/src/dashboard/app/components/KnowledgeMarkdown.jsx +53 -0
- package/src/dashboard/app/components/Markdown.jsx +47 -0
- package/src/dashboard/app/components/PhaseRail.jsx +111 -0
- package/src/dashboard/app/components/SearchFilter.jsx +40 -22
- package/src/dashboard/app/components/Sidebar.jsx +146 -37
- package/src/dashboard/app/hooks/useMorphQuery.js +54 -0
- package/src/dashboard/app/hooks/usePref.js +38 -0
- package/src/dashboard/app/lib/format.js +69 -0
- package/src/dashboard/app/lib/phases.js +56 -0
- package/src/dashboard/app/lib/project.js +50 -0
- package/src/dashboard/app/pages/Activity.jsx +24 -0
- package/src/dashboard/app/pages/AgentMap.jsx +371 -370
- package/src/dashboard/app/pages/FeatureDetail.jsx +604 -0
- package/src/dashboard/app/pages/Features.jsx +400 -0
- package/src/dashboard/app/pages/Guide.jsx +146 -0
- package/src/dashboard/app/pages/HookInspector.jsx +357 -322
- package/src/dashboard/app/pages/PhasePipeline.jsx +277 -408
- package/src/dashboard/app/pages/Portfolio.jsx +156 -0
- package/src/dashboard/app/pages/Rubrics.jsx +101 -0
- package/src/dashboard/app/pages/RulesMap.jsx +300 -273
- package/src/dashboard/app/pages/SkillsLibrary.jsx +483 -366
- package/src/dashboard/app/pages/Standards.jsx +407 -332
- package/src/dashboard/app/styles/index.css +187 -47
- package/src/dashboard/index.html +14 -12
- package/src/dashboard/package.json +32 -24
- package/src/dashboard/scanner/activity-scanner.js +351 -0
- package/src/dashboard/scanner/agents-scanner.js +59 -1
- package/src/dashboard/scanner/docs-scanner.js +59 -0
- package/src/dashboard/scanner/feature-status.js +10 -0
- package/src/dashboard/scanner/features-scanner.js +360 -0
- package/src/dashboard/scanner/index.js +14 -7
- package/src/dashboard/scanner/phases-scanner.js +14 -15
- package/src/dashboard/scanner/portfolio.js +153 -0
- package/src/dashboard/scanner/project-api.js +195 -0
- package/src/dashboard/scanner/rules-scanner.js +42 -37
- package/src/dashboard/scanner/skills-scanner.js +105 -43
- package/src/dashboard/scanner/standards-scanner.js +2 -0
- package/src/dashboard/vite-plugin-morph-data.js +134 -17
- package/src/lib/detectors/claude-config-detector.js +2 -7
- package/src/lib/detectors/index.js +5 -1
- package/src/lib/evaluator-report.js +22 -0
- package/src/lib/generators/settings-generator.js +208 -209
- package/src/lib/installers/mcp-installer.js +724 -719
- package/src/lib/installers/memory-installer.js +1 -2
- package/src/lib/projects/registry.js +154 -0
- package/src/lib/risk-detector.js +13 -0
- package/src/lib/tasks/tasks-json-parser.js +21 -0
- package/src/lib/validators/code-budget/code-budget-validator.js +32 -4
- package/src/lib/worktree/env-allocator.js +9 -3
- package/src/scripts/install-plugin.js +1 -1
- package/src/scripts/setup-infra.js +2 -4
- package/src/utils/agents-installer.js +108 -13
- package/src/utils/banner.js +1 -1
- package/src/commands/index.js +0 -13
- package/src/commands/project/checkpoint.js +0 -209
- package/src/core/state/phase-state-machine.js +0 -197
- package/src/dashboard/app/hooks/useDetailPanel.js +0 -15
- package/src/dashboard/app/pages/LiveState.jsx +0 -206
- package/src/dashboard/scanner/squads-scanner.js +0 -13
- package/src/dashboard/scanner/state-scanner.js +0 -85
- package/src/lib/generators/index.js +0 -10
- package/src/lib/hooks/hook-executor.js +0 -167
- package/src/lib/validators/checkpoint-persistence.js +0 -39
- package/src/lib/validators/shared/emit-validator-dispatch.js +0 -14
- package/src/lib/validators/shared/index.js +0 -12
- package/src/lib/validators/shared/issue-counter.js +0 -14
- package/src/lib/validators/shared/result-formatter.js +0 -124
|
@@ -1,58 +1,53 @@
|
|
|
1
|
-
//
|
|
2
|
-
//
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
{
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
"text-
|
|
15
|
-
"provider": "openai",
|
|
16
|
-
"model": "gpt-4o
|
|
17
|
-
"options": { "temperature": 0.
|
|
18
|
-
},
|
|
19
|
-
"
|
|
20
|
-
"provider": "openai",
|
|
21
|
-
"model": "
|
|
22
|
-
"options": { "
|
|
23
|
-
},
|
|
24
|
-
"
|
|
25
|
-
"provider": "
|
|
26
|
-
"model": "
|
|
27
|
-
"options": {
|
|
28
|
-
},
|
|
29
|
-
"
|
|
30
|
-
"provider": "
|
|
31
|
-
"model": "
|
|
32
|
-
"options": {}
|
|
33
|
-
},
|
|
34
|
-
"
|
|
35
|
-
"provider": "
|
|
36
|
-
"model": "
|
|
37
|
-
"options": {}
|
|
38
|
-
},
|
|
39
|
-
"
|
|
40
|
-
"provider": "
|
|
41
|
-
"model": "
|
|
42
|
-
"options": { "
|
|
43
|
-
},
|
|
44
|
-
"
|
|
45
|
-
"provider": "
|
|
46
|
-
"model": "
|
|
47
|
-
"options": {
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
},
|
|
55
|
-
"fallback": {
|
|
56
|
-
"text-default": "ollama/llama3.2:3b"
|
|
57
|
-
}
|
|
58
|
-
}
|
|
1
|
+
// READS STANDARD: ai-agents-providers-model-registry
|
|
2
|
+
// Goes in config/model-registry.json. ModelRegistry only builds openai and ollama:
|
|
3
|
+
// the anthropic and google aliases throw until a provider branch is added there.
|
|
4
|
+
{
|
|
5
|
+
"$schema": "./model-registry.schema.json",
|
|
6
|
+
"version": "1.0",
|
|
7
|
+
"defaultAlias": "{{PROJECT_DEFAULT_ALIAS}}",
|
|
8
|
+
"aliases": {
|
|
9
|
+
"text-default": {
|
|
10
|
+
"provider": "openai",
|
|
11
|
+
"model": "gpt-4o-mini",
|
|
12
|
+
"options": { "temperature": 0.7 }
|
|
13
|
+
},
|
|
14
|
+
"text-heavy": {
|
|
15
|
+
"provider": "openai",
|
|
16
|
+
"model": "gpt-4o",
|
|
17
|
+
"options": { "temperature": 0.5 }
|
|
18
|
+
},
|
|
19
|
+
"reasoning": {
|
|
20
|
+
"provider": "openai",
|
|
21
|
+
"model": "o3-mini",
|
|
22
|
+
"options": { "reasoningEffort": "medium" }
|
|
23
|
+
},
|
|
24
|
+
"long-form": {
|
|
25
|
+
"provider": "anthropic",
|
|
26
|
+
"model": "claude-sonnet-4-6",
|
|
27
|
+
"options": {}
|
|
28
|
+
},
|
|
29
|
+
"vision": {
|
|
30
|
+
"provider": "google",
|
|
31
|
+
"model": "gemini-2.5-flash",
|
|
32
|
+
"options": {}
|
|
33
|
+
},
|
|
34
|
+
"embeddings": {
|
|
35
|
+
"provider": "openai",
|
|
36
|
+
"model": "text-embedding-3-small",
|
|
37
|
+
"options": { "dimensions": 1536 }
|
|
38
|
+
},
|
|
39
|
+
"local-dev": {
|
|
40
|
+
"provider": "ollama",
|
|
41
|
+
"model": "llama3.2:3b",
|
|
42
|
+
"options": { "endpoint": "http://localhost:11434/v1" }
|
|
43
|
+
},
|
|
44
|
+
"transcription": {
|
|
45
|
+
"provider": "openai",
|
|
46
|
+
"model": "whisper-1",
|
|
47
|
+
"options": {}
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"fallback": {
|
|
51
|
+
"text-default": "ollama/llama3.2:3b"
|
|
52
|
+
}
|
|
53
|
+
}
|
|
@@ -1,281 +1,192 @@
|
|
|
1
|
-
//
|
|
2
|
-
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
//
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
{
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
public
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
public
|
|
48
|
-
{
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
public
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
public
|
|
82
|
-
{
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
public
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
public
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
public
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
{
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
public
|
|
141
|
-
{
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
{
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
public async Task<Result<Create{{pascalCase FEATURE_NAME}}Response>> HandleAsync(
|
|
194
|
-
Create{{pascalCase FEATURE_NAME}}Request command, CancellationToken cancellationToken)
|
|
195
|
-
{
|
|
196
|
-
var entity = new {{pascalCase FEATURE_NAME}}
|
|
197
|
-
{
|
|
198
|
-
Id = Guid.CreateVersion7(),
|
|
199
|
-
// TODO: mapear campos do command para a entidade
|
|
200
|
-
// Name = command.Name,
|
|
201
|
-
// Price = command.Price,
|
|
202
|
-
};
|
|
203
|
-
|
|
204
|
-
_db.Set<{{pascalCase FEATURE_NAME}}>().Add(entity);
|
|
205
|
-
await _db.SaveChangesAsync(cancellationToken);
|
|
206
|
-
|
|
207
|
-
return Result.Success(new Create{{pascalCase FEATURE_NAME}}Response(entity.Id /* , entity.Name, ... */));
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
// --- Create{{pascalCase FEATURE_NAME}}Validator.cs ---
|
|
212
|
-
namespace {{NAMESPACE}}.Features.{{pascalCase FEATURE_NAME}}Feature.Create{{pascalCase FEATURE_NAME}};
|
|
213
|
-
|
|
214
|
-
using FluentValidation;
|
|
215
|
-
|
|
216
|
-
public class Create{{pascalCase FEATURE_NAME}}Validator : AbstractValidator<Create{{pascalCase FEATURE_NAME}}Request>
|
|
217
|
-
{
|
|
218
|
-
public Create{{pascalCase FEATURE_NAME}}Validator()
|
|
219
|
-
{
|
|
220
|
-
// TODO: adicionar regras de validação para cada campo
|
|
221
|
-
// RuleFor(c => c.Name)
|
|
222
|
-
// .NotEmpty().WithMessage("Name is required")
|
|
223
|
-
// .MaximumLength(200).WithMessage("Name must not exceed 200 characters");
|
|
224
|
-
// RuleFor(c => c.Price)
|
|
225
|
-
// .GreaterThan(0).WithMessage("Price must be greater than 0");
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
// --- Create{{pascalCase FEATURE_NAME}}Endpoint.cs ---
|
|
230
|
-
namespace {{NAMESPACE}}.Features.{{pascalCase FEATURE_NAME}}Feature.Create{{pascalCase FEATURE_NAME}};
|
|
231
|
-
|
|
232
|
-
using {{NAMESPACE}}.Abstractions;
|
|
233
|
-
using {{NAMESPACE}}.Extensions;
|
|
234
|
-
|
|
235
|
-
internal sealed class Create{{pascalCase FEATURE_NAME}}Endpoint : IApiEndpoint
|
|
236
|
-
{
|
|
237
|
-
public void MapEndpoint(IEndpointRouteBuilder app)
|
|
238
|
-
{
|
|
239
|
-
app.MapPost("{{ROUTE}}", async (
|
|
240
|
-
IHandler<Create{{pascalCase FEATURE_NAME}}Request, Result<Create{{pascalCase FEATURE_NAME}}Response>> handler,
|
|
241
|
-
Create{{pascalCase FEATURE_NAME}}Request command,
|
|
242
|
-
CancellationToken cancellationToken) =>
|
|
243
|
-
{
|
|
244
|
-
var result = await handler.HandleAsync(command, cancellationToken);
|
|
245
|
-
return result.Match(
|
|
246
|
-
onSuccess: () => Results.Ok(result.Value),
|
|
247
|
-
onFailure: error => Results.BadRequest(error));
|
|
248
|
-
})
|
|
249
|
-
// TODO: substituir "{{pascalCase FEATURE_NAME}}s" pelo tag correto em ApiTags
|
|
250
|
-
.WithTags("{{pascalCase FEATURE_NAME}}s")
|
|
251
|
-
.Produces<Create{{pascalCase FEATURE_NAME}}Response>(StatusCodes.Status200OK)
|
|
252
|
-
.Produces(StatusCodes.Status400BadRequest);
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
// ============================================================
|
|
257
|
-
// TODO: adicionar slices restantes (copiar padrão do Create acima)
|
|
258
|
-
// ============================================================
|
|
259
|
-
// GetAll{{pascalCase FEATURE_NAME}}s — sem validator (sem parâmetros)
|
|
260
|
-
// Request: sealed record GetAll{{pascalCase FEATURE_NAME}}sRequest;
|
|
261
|
-
// Response: sealed record GetAll{{pascalCase FEATURE_NAME}}sResponse(IEnumerable<{{pascalCase FEATURE_NAME}}Dto> Items);
|
|
262
|
-
// DTO: sealed record {{pascalCase FEATURE_NAME}}Dto(Guid Id, /* campos */);
|
|
263
|
-
// Endpoint: app.MapGet("{{ROUTE}}", ...)
|
|
264
|
-
//
|
|
265
|
-
// Get{{pascalCase FEATURE_NAME}}ById — com validator (Id obrigatório)
|
|
266
|
-
// Request: sealed record Get{{pascalCase FEATURE_NAME}}ByIdRequest(Guid Id);
|
|
267
|
-
// Response: sealed record Get{{pascalCase FEATURE_NAME}}ByIdResponse(Guid Id, /* campos */);
|
|
268
|
-
// Endpoint: app.MapGet("{{ROUTE}}/{id:guid}", ...)
|
|
269
|
-
// OnFailure: Results.NotFound(error)
|
|
270
|
-
//
|
|
271
|
-
// Update{{pascalCase FEATURE_NAME}} — com validator
|
|
272
|
-
// Request: sealed record Update{{pascalCase FEATURE_NAME}}Request(Guid Id, /* campos nullable */);
|
|
273
|
-
// Response: sealed record Update{{pascalCase FEATURE_NAME}}Response(Guid Id, /* campos */);
|
|
274
|
-
// Endpoint: app.MapPut("{{ROUTE}}/{id:guid}", ...)
|
|
275
|
-
// Checar NotFound antes de atualizar
|
|
276
|
-
//
|
|
277
|
-
// Delete{{pascalCase FEATURE_NAME}} — com validator
|
|
278
|
-
// Request: sealed record Delete{{pascalCase FEATURE_NAME}}Request(Guid Id);
|
|
279
|
-
// Response: sealed record Delete{{pascalCase FEATURE_NAME}}Response(Guid Id);
|
|
280
|
-
// Endpoint: app.MapDelete("{{ROUTE}}/{id:guid}", ...)
|
|
281
|
-
// Checar NotFound antes de deletar
|
|
1
|
+
// {{pascalCase FEATURE_NAME}} ({{DATE}}): cada seção vai para o arquivo do caminho que a encabeça.
|
|
2
|
+
|
|
3
|
+
// Abstractions/IHandler.cs
|
|
4
|
+
namespace {{NAMESPACE}}.Abstractions
|
|
5
|
+
{
|
|
6
|
+
public interface IHandler<in TRequest, TResponse>
|
|
7
|
+
{
|
|
8
|
+
Task<TResponse> HandleAsync(TRequest command, CancellationToken cancellationToken);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
// Abstractions/IApiEndpoint.cs
|
|
13
|
+
namespace {{NAMESPACE}}.Abstractions
|
|
14
|
+
{
|
|
15
|
+
public interface IApiEndpoint
|
|
16
|
+
{
|
|
17
|
+
void MapEndpoint(IEndpointRouteBuilder app);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
// Abstractions/Errors/Error.cs
|
|
22
|
+
namespace {{NAMESPACE}}.Abstractions.Errors;
|
|
23
|
+
|
|
24
|
+
public record Error(string Code, string? Description = default, ErrorType Type = ErrorType.Failure)
|
|
25
|
+
{
|
|
26
|
+
public static readonly Error None = new(string.Empty);
|
|
27
|
+
public static readonly Error Null = new("Error.NullValue", "The specified result value is null.");
|
|
28
|
+
|
|
29
|
+
public static implicit operator Result(Error error) => Result.Failure(error);
|
|
30
|
+
|
|
31
|
+
public static Error Failure(string code, string description) =>
|
|
32
|
+
new(code, description, ErrorType.Failure);
|
|
33
|
+
public static Error Unexpected(string code, string description) =>
|
|
34
|
+
new(code, description, ErrorType.Unexpected);
|
|
35
|
+
public static Error Validation(string code, string description) =>
|
|
36
|
+
new(code, description, ErrorType.Validation);
|
|
37
|
+
public static Error Conflict(string code, string description) =>
|
|
38
|
+
new(code, description, ErrorType.Conflict);
|
|
39
|
+
public static Error NotFound(string code, string description) =>
|
|
40
|
+
new(code, description, ErrorType.NotFound);
|
|
41
|
+
public static Error Unauthorized(string code, string description) =>
|
|
42
|
+
new(code, description, ErrorType.Unauthorized);
|
|
43
|
+
public static Error Forbidden(string code, string description) =>
|
|
44
|
+
new(code, description, ErrorType.Forbidden);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
public enum ErrorType
|
|
48
|
+
{
|
|
49
|
+
Failure, Unexpected, Validation, Conflict, NotFound, Unauthorized, Forbidden, Custom
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
// Abstractions/Errors/ValidationError.cs
|
|
53
|
+
namespace {{NAMESPACE}}.Abstractions.Errors;
|
|
54
|
+
|
|
55
|
+
public sealed record ValidationError : Error
|
|
56
|
+
{
|
|
57
|
+
public ValidationError(Error[] errors)
|
|
58
|
+
: base("Validation.General", "One or more validation errors occurred", ErrorType.Validation)
|
|
59
|
+
{
|
|
60
|
+
Errors = errors;
|
|
61
|
+
}
|
|
62
|
+
public Error[] Errors { get; }
|
|
63
|
+
public static ValidationError FromResults(IEnumerable<Result> results) =>
|
|
64
|
+
new(results.Where(r => r.IsFailure).Select(r => r.Error).ToArray());
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
// Abstractions/Result.cs
|
|
68
|
+
using {{NAMESPACE}}.Abstractions.Errors;
|
|
69
|
+
namespace {{NAMESPACE}}.Abstractions;
|
|
70
|
+
|
|
71
|
+
public class Result
|
|
72
|
+
{
|
|
73
|
+
protected internal Result(bool isSuccess, Error error)
|
|
74
|
+
{
|
|
75
|
+
if (isSuccess && error != Error.None || !isSuccess && error == Error.None)
|
|
76
|
+
throw new ArgumentException("Invalid error", nameof(error));
|
|
77
|
+
IsSuccess = isSuccess;
|
|
78
|
+
Error = error;
|
|
79
|
+
}
|
|
80
|
+
public bool IsSuccess { get; }
|
|
81
|
+
public bool IsFailure => !IsSuccess;
|
|
82
|
+
public Error Error { get; }
|
|
83
|
+
|
|
84
|
+
public static Result Success() => new(true, Error.None);
|
|
85
|
+
public static Result<TValue> Success<TValue>(TValue value) => new(value, true, Error.None);
|
|
86
|
+
public static Result Failure(Error error) => new(false, error);
|
|
87
|
+
public static Result<TValue> Failure<TValue>(Error error) => new(default, false, error);
|
|
88
|
+
public static Result<TValue> Create<TValue>(TValue? value) =>
|
|
89
|
+
value is not null ? Success(value) : Failure<TValue>(Error.Null);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
public class Result<TValue> : Result
|
|
93
|
+
{
|
|
94
|
+
private readonly TValue? _value;
|
|
95
|
+
protected internal Result(TValue? value, bool isSuccess, Error error) : base(isSuccess, error)
|
|
96
|
+
=> _value = value;
|
|
97
|
+
public TValue Value => IsSuccess
|
|
98
|
+
? _value!
|
|
99
|
+
: throw new InvalidOperationException("The value of a failure result can not be accessed.");
|
|
100
|
+
public static implicit operator Result<TValue>(TValue? value) => Create(value);
|
|
101
|
+
public static implicit operator Result<TValue>(Error error) => Failure<TValue>(error);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
// Entities/{{pascalCase FEATURE_NAME}}.cs
|
|
105
|
+
namespace {{NAMESPACE}}.Entities;
|
|
106
|
+
|
|
107
|
+
public sealed class {{pascalCase FEATURE_NAME}}
|
|
108
|
+
{
|
|
109
|
+
public Guid Id { get; set; }
|
|
110
|
+
|
|
111
|
+
// TODO: campos da entidade
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
// Features/{{pascalCase FEATURE_NAME}}Feature/{{pascalCase FEATURE_NAME}}Errors.cs (compartilhado pelos slices)
|
|
115
|
+
using {{NAMESPACE}}.Abstractions.Errors;
|
|
116
|
+
namespace {{NAMESPACE}}.Features.{{pascalCase FEATURE_NAME}}Feature;
|
|
117
|
+
|
|
118
|
+
public static class {{pascalCase FEATURE_NAME}}Errors
|
|
119
|
+
{
|
|
120
|
+
public static Error NotFound(Guid id) =>
|
|
121
|
+
Error.NotFound("{{pascalCase FEATURE_NAME}}s.NotFound",
|
|
122
|
+
$"The {{pascalCase FEATURE_NAME}} with Id '{id}' was not found");
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
// Features/{{pascalCase FEATURE_NAME}}Feature/Create{{pascalCase FEATURE_NAME}}/Create{{pascalCase FEATURE_NAME}}Handler.cs
|
|
126
|
+
namespace {{NAMESPACE}}.Features.{{pascalCase FEATURE_NAME}}Feature.Create{{pascalCase FEATURE_NAME}};
|
|
127
|
+
|
|
128
|
+
using {{NAMESPACE}}.Abstractions;
|
|
129
|
+
using {{NAMESPACE}}.Database;
|
|
130
|
+
using {{NAMESPACE}}.Entities;
|
|
131
|
+
|
|
132
|
+
// TODO: campos do request e do response
|
|
133
|
+
public sealed record Create{{pascalCase FEATURE_NAME}}Request();
|
|
134
|
+
|
|
135
|
+
public sealed record Create{{pascalCase FEATURE_NAME}}Response(Guid Id);
|
|
136
|
+
|
|
137
|
+
public sealed class Create{{pascalCase FEATURE_NAME}}Handler(
|
|
138
|
+
ApplicationDbContext _db) : IHandler<Create{{pascalCase FEATURE_NAME}}Request, Result<Create{{pascalCase FEATURE_NAME}}Response>>
|
|
139
|
+
{
|
|
140
|
+
public async Task<Result<Create{{pascalCase FEATURE_NAME}}Response>> HandleAsync(
|
|
141
|
+
Create{{pascalCase FEATURE_NAME}}Request command, CancellationToken cancellationToken)
|
|
142
|
+
{
|
|
143
|
+
var entity = new {{pascalCase FEATURE_NAME}}
|
|
144
|
+
{
|
|
145
|
+
Id = Guid.CreateVersion7(),
|
|
146
|
+
// TODO: mapear os campos do command
|
|
147
|
+
};
|
|
148
|
+
|
|
149
|
+
_db.Set<{{pascalCase FEATURE_NAME}}>().Add(entity);
|
|
150
|
+
await _db.SaveChangesAsync(cancellationToken);
|
|
151
|
+
|
|
152
|
+
return Result.Success(new Create{{pascalCase FEATURE_NAME}}Response(entity.Id));
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
// Create{{pascalCase FEATURE_NAME}}/Create{{pascalCase FEATURE_NAME}}Validator.cs
|
|
157
|
+
namespace {{NAMESPACE}}.Features.{{pascalCase FEATURE_NAME}}Feature.Create{{pascalCase FEATURE_NAME}};
|
|
158
|
+
|
|
159
|
+
using FluentValidation;
|
|
160
|
+
|
|
161
|
+
public class Create{{pascalCase FEATURE_NAME}}Validator : AbstractValidator<Create{{pascalCase FEATURE_NAME}}Request>
|
|
162
|
+
{
|
|
163
|
+
public Create{{pascalCase FEATURE_NAME}}Validator()
|
|
164
|
+
{
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
// Create{{pascalCase FEATURE_NAME}}/Create{{pascalCase FEATURE_NAME}}Endpoint.cs
|
|
169
|
+
namespace {{NAMESPACE}}.Features.{{pascalCase FEATURE_NAME}}Feature.Create{{pascalCase FEATURE_NAME}};
|
|
170
|
+
|
|
171
|
+
using {{NAMESPACE}}.Abstractions;
|
|
172
|
+
using {{NAMESPACE}}.Extensions;
|
|
173
|
+
|
|
174
|
+
internal sealed class Create{{pascalCase FEATURE_NAME}}Endpoint : IApiEndpoint
|
|
175
|
+
{
|
|
176
|
+
public void MapEndpoint(IEndpointRouteBuilder app)
|
|
177
|
+
{
|
|
178
|
+
app.MapPost("{{ROUTE}}", async (
|
|
179
|
+
IHandler<Create{{pascalCase FEATURE_NAME}}Request, Result<Create{{pascalCase FEATURE_NAME}}Response>> handler,
|
|
180
|
+
Create{{pascalCase FEATURE_NAME}}Request command,
|
|
181
|
+
CancellationToken cancellationToken) =>
|
|
182
|
+
{
|
|
183
|
+
var result = await handler.HandleAsync(command, cancellationToken);
|
|
184
|
+
return result.Match(
|
|
185
|
+
onSuccess: () => Results.Ok(result.Value),
|
|
186
|
+
onFailure: error => Results.BadRequest(error));
|
|
187
|
+
})
|
|
188
|
+
.WithTags("{{pascalCase FEATURE_NAME}}s")
|
|
189
|
+
.Produces<Create{{pascalCase FEATURE_NAME}}Response>(StatusCodes.Status200OK)
|
|
190
|
+
.Produces(StatusCodes.Status400BadRequest);
|
|
191
|
+
}
|
|
192
|
+
}
|