Skip to content

Commit

Permalink
Remove inline from response
Browse files Browse the repository at this point in the history
  • Loading branch information
Swimburger committed Nov 22, 2024
1 parent 7855829 commit 37eb122
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 14 deletions.
1 change: 0 additions & 1 deletion fern/apis/fern-definition/definition/service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@ types:
HttpResponseSchemaDetailed:
extends:
- commons.WithDocsSchema
- commons.WithInline
properties:
type: string
property: optional<string>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import * as FernDefinition from "../../../index";

export interface HttpResponseSchemaDetailed extends FernDefinition.WithDocsSchema, FernDefinition.WithInline {
export interface HttpResponseSchemaDetailed extends FernDefinition.WithDocsSchema {
type: string;
property?: string;
"status-code"?: number;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import * as serializers from "../../../index";
import * as FernDefinition from "../../../../api/index";
import * as core from "../../../../core";
import { WithDocsSchema } from "../../commons/types/WithDocsSchema";
import { WithInline } from "../../commons/types/WithInline";

export const HttpResponseSchemaDetailed: core.serialization.ObjectSchema<
serializers.HttpResponseSchemaDetailed.Raw,
Expand All @@ -17,11 +16,10 @@ export const HttpResponseSchemaDetailed: core.serialization.ObjectSchema<
property: core.serialization.string().optional(),
"status-code": core.serialization.number().optional(),
})
.extend(WithDocsSchema)
.extend(WithInline);
.extend(WithDocsSchema);

export declare namespace HttpResponseSchemaDetailed {
interface Raw extends WithDocsSchema.Raw, WithInline.Raw {
interface Raw extends WithDocsSchema.Raw {
type: string;
property?: string | null;
"status-code"?: number | null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,7 @@ async function visitEndpoint({
});
},
property: noop,
"status-code": noop,
inline: noop
"status-code": noop
});
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,6 @@ service:
content-type: application/json
name: PostRootRequest
response: RootType1
getInline:
path: /inline
method: GET
response:
type: InlineType1
inline: true

types:
DiscriminatedUnion1:
Expand Down

0 comments on commit 37eb122

Please sign in to comment.