-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into feature/workflows-readme
- Loading branch information
Showing
20 changed files
with
7,352 additions
and
748 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
43 changes: 43 additions & 0 deletions
43
packages/openactive-integration-tests/documentation/featureJson.js
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
const { z } = require('zod'); | ||
|
||
const FeatureJsonLinkSchema = z.object({ | ||
name: z.string(), | ||
href: z.string().url(), | ||
}); | ||
|
||
/** | ||
* The shape of data in feature.json files. | ||
*/ | ||
const FeatureJsonSchema = z.object({ | ||
category: z.string(), | ||
identifier: z.string(), | ||
name: z.string(), | ||
description: z.string(), | ||
explainer: z.string().optional(), | ||
/** | ||
* URL reference to a section of the Open Booking API | ||
*/ | ||
specificationReference: z.string().url(), | ||
/** | ||
* Is it required for an implementation to implement this feature? | ||
*/ | ||
required: z.boolean(), | ||
/** | ||
* How much test coverage has been written for this feature | ||
*/ | ||
coverageStatus: z.enum(['none', 'partial', 'complete']), | ||
/** | ||
* Description of when this feature is required | ||
*/ | ||
requiredCondition: z.string().optional(), | ||
links: z.array(FeatureJsonLinkSchema).optional(), | ||
requiresOneOfIfImplemented: z.array(z.string()).optional(), | ||
}); | ||
|
||
/** | ||
* @typedef {z.infer<typeof FeatureJsonSchema>} FeatureJson | ||
*/ | ||
|
||
module.exports = { | ||
FeatureJsonSchema, | ||
}; |
This file contains 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
Oops, something went wrong.