Skip to content

Commit

Permalink
format code from merged PR
Browse files Browse the repository at this point in the history
  • Loading branch information
AGalabov committed Mar 1, 2024
1 parent 79a2907 commit 82e227d
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/openapi-registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,16 @@ export interface ZodMediaTypeObject {
}

// Provide autocompletion on media type with most common one without restricting to anything.
export type ZodMediaType = 'application/json' | 'text/html' | 'text/plain' | 'application/xml' | string & {};

export type ZodContentObject = Partial<Record<ZodMediaType, ZodMediaTypeObject>>;
export type ZodMediaType =
| 'application/json'
| 'text/html'
| 'text/plain'
| 'application/xml'
| (string & {});

export type ZodContentObject = Partial<
Record<ZodMediaType, ZodMediaTypeObject>
>;

export interface ZodRequestBody {
description?: string;
Expand Down

0 comments on commit 82e227d

Please sign in to comment.