Skip to content

Commit

Permalink
Fix bugs in properties.ts files of API reference
Browse files Browse the repository at this point in the history
  • Loading branch information
fabian-hiller committed Jan 19, 2024
1 parent c0831b0 commit cdc6fb4
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 53 deletions.
5 changes: 4 additions & 1 deletion website/src/routes/api/(types)/Enum/properties.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ export const properties: Record<string, PropertyProps> = {
entries: [
{
key: { name: 'key', type: 'string' },
value: ['string', 'number'],
value: {
type: 'union',
options: ['string', 'number'],
},
},
{
key: { name: 'key', type: 'number' },
Expand Down
47 changes: 25 additions & 22 deletions website/src/routes/api/(types)/InvalidActionResult/properties.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,28 +13,31 @@ export const properties: Record<string, PropertyProps> = {
name: 'Issue',
href: '../Issue/',
},
[
{
type: 'string',
value: 'validation',
},
{
type: 'string',
value: 'message',
},
{
type: 'string',
value: 'input',
},
{
type: 'string',
value: 'requirement',
},
{
type: 'string',
value: 'path',
},
],
{
type: 'union',
options: [
{
type: 'string',
value: 'validation',
},
{
type: 'string',
value: 'message',
},
{
type: 'string',
value: 'input',
},
{
type: 'string',
value: 'requirement',
},
{
type: 'string',
value: 'path',
},
],
},
],
},
},
Expand Down
15 changes: 9 additions & 6 deletions website/src/routes/api/(types)/ParseInfo/properties.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,15 @@ export const properties: Record<string, PropertyProps> = {
name: 'Issue',
href: '../Issue/',
},
[
{ type: 'string', value: 'origin' },
{ type: 'string', value: 'abortEarly' },
{ type: 'string', value: 'abortPipeEarly' },
{ type: 'string', value: 'skipPipe' },
],
{
type: 'union',
options: [
{ type: 'string', value: 'origin' },
{ type: 'string', value: 'abortEarly' },
{ type: 'string', value: 'abortPipeEarly' },
{ type: 'string', value: 'skipPipe' },
],
},
],
},
],
Expand Down
51 changes: 27 additions & 24 deletions website/src/routes/api/(types)/Pipe/properties.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,30 +4,33 @@ export const properties: Record<string, PropertyProps> = {
Pipe: {
type: {
type: 'array',
item: [
{
type: 'custom',
name: 'BaseValidation',
href: '../BaseValidation/',
generics: [
{
type: 'custom',
name: 'TInput',
},
],
},
{
type: 'custom',
name: 'BaseTransformation',
href: '../BaseTransformation/',
generics: [
{
type: 'custom',
name: 'TInput',
},
],
},
],
item: {
type: 'union',
options: [
{
type: 'custom',
name: 'BaseValidation',
href: '../BaseValidation/',
generics: [
{
type: 'custom',
name: 'TInput',
},
],
},
{
type: 'custom',
name: 'BaseTransformation',
href: '../BaseTransformation/',
generics: [
{
type: 'custom',
name: 'TInput',
},
],
},
],
},
},
},
};

0 comments on commit cdc6fb4

Please sign in to comment.