feat(api): declare identity contract for registration, verification, and sessions
This commit is contained in:
1 parent
197661145e
commit
653f3775f8
86 files changed
+11826
-148
No files matched your search
@@ -47,6 +47,11 @@ const inlineReusableResponses = defineTransformer((spec) => {
|
||||
// The API compatibility check sets this variable to a temporary directory to
|
||||
// generate the OpenAPI 3.2 fixture with the production settings.
|
||||
const compatOutput = process.env["ORVAL_COMPAT_OUTPUT"];
|
||||
// `clean: true` empties the output directories, so an empty value, which
|
||||
// would place them at the filesystem root, is rejected.
|
||||
if (compatOutput !== undefined && compatOutput.trim() === "") {
|
||||
throw new Error("ORVAL_COMPAT_OUTPUT must name a directory when it is set.");
|
||||
}
|
||||
|
||||
function project(inputTarget: string, endpoints: string, schemas: string): Options {
|
||||
return {
|
||||
@@ -59,6 +64,11 @@ function project(inputTarget: string, endpoints: string, schemas: string): Optio
|
||||
output: {
|
||||
mode: "tags-split",
|
||||
target: endpoints,
|
||||
// The endpoint and schema directories hold only generated files. A schema
|
||||
// used by several tags moves from a tag directory to the schema root, so
|
||||
// the directories are cleared first to drop files the contract no longer
|
||||
// produces.
|
||||
clean: true,
|
||||
indexFiles: true,
|
||||
// Generated operations take header parameters such as Idempotency-Key
|
||||
// and If-Match as a typed argument instead of dropping them.
|
||||
|
||||
Reference in new issue
Block a user