-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(cli): Add support for object property 'access' field (#6197)
- Loading branch information
Showing
91 changed files
with
6,142 additions
and
47 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
25 changes: 25 additions & 0 deletions
25
...nition/ir-to-jsonschema/src/__test__/__snapshots__/csharp-property-access/type__User.json
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,25 @@ | ||
{ | ||
"type": "object", | ||
"properties": { | ||
"id": { | ||
"type": "string" | ||
}, | ||
"name": { | ||
"type": "string" | ||
}, | ||
"email": { | ||
"type": "string" | ||
}, | ||
"password": { | ||
"type": "string" | ||
} | ||
}, | ||
"required": [ | ||
"id", | ||
"name", | ||
"email", | ||
"password" | ||
], | ||
"additionalProperties": false, | ||
"definitions": {} | ||
} |
9 changes: 9 additions & 0 deletions
9
.../cli/fern-definition/schema/src/schemas/api/resources/types/types/ObjectPropertyAccess.ts
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,9 @@ | ||
/** | ||
* This file was auto-generated by Fern from our API Definition. | ||
*/ | ||
|
||
export type ObjectPropertyAccess = "read-only" | "write-only"; | ||
export const ObjectPropertyAccess = { | ||
ReadOnly: "read-only", | ||
WriteOnly: "write-only", | ||
} as const; |
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
9 changes: 9 additions & 0 deletions
9
...definition/schema/src/schemas/api/resources/types/types/ObjectPropertyWithAccessSchema.ts
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,9 @@ | ||
/** | ||
* This file was auto-generated by Fern from our API Definition. | ||
*/ | ||
|
||
import * as FernDefinition from "../../../index"; | ||
|
||
export interface ObjectPropertyWithAccessSchema extends FernDefinition.TypeReferenceDeclarationWithName { | ||
"access"?: FernDefinition.ObjectPropertyAccess; | ||
} |
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
16 changes: 16 additions & 0 deletions
16
...definition/schema/src/schemas/serialization/resources/types/types/ObjectPropertyAccess.ts
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,16 @@ | ||
/** | ||
* This file was auto-generated by Fern from our API Definition. | ||
*/ | ||
|
||
import * as serializers from "../../../index"; | ||
import * as FernDefinition from "../../../../api/index"; | ||
import * as core from "../../../../core"; | ||
|
||
export const ObjectPropertyAccess: core.serialization.Schema< | ||
serializers.ObjectPropertyAccess.Raw, | ||
FernDefinition.ObjectPropertyAccess | ||
> = core.serialization.enum_(["read-only", "write-only"]); | ||
|
||
export declare namespace ObjectPropertyAccess { | ||
export type Raw = "read-only" | "write-only"; | ||
} |
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
24 changes: 24 additions & 0 deletions
24
.../schema/src/schemas/serialization/resources/types/types/ObjectPropertyWithAccessSchema.ts
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,24 @@ | ||
/** | ||
* This file was auto-generated by Fern from our API Definition. | ||
*/ | ||
|
||
import * as serializers from "../../../index"; | ||
import * as FernDefinition from "../../../../api/index"; | ||
import * as core from "../../../../core"; | ||
import { ObjectPropertyAccess } from "./ObjectPropertyAccess"; | ||
import { TypeReferenceDeclarationWithName } from "./TypeReferenceDeclarationWithName"; | ||
|
||
export const ObjectPropertyWithAccessSchema: core.serialization.ObjectSchema< | ||
serializers.ObjectPropertyWithAccessSchema.Raw, | ||
FernDefinition.ObjectPropertyWithAccessSchema | ||
> = core.serialization | ||
.object({ | ||
"access": ObjectPropertyAccess.optional(), | ||
}) | ||
.extend(TypeReferenceDeclarationWithName); | ||
|
||
export declare namespace ObjectPropertyWithAccessSchema { | ||
export interface Raw extends TypeReferenceDeclarationWithName.Raw { | ||
"access"?: ObjectPropertyAccess.Raw | null; | ||
} | ||
} |
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
Oops, something went wrong.