File tree Expand file tree Collapse file tree
packages/server/src/api/rpc Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { lowerCaseFirst , upperCaseFirst } from '@zenstackhq/common-helpers' ;
22import type { EnumDef , FieldDef , ModelDef , SchemaDef } from '@zenstackhq/orm/schema' ;
33import type { OpenAPIV3_1 } from 'openapi-types' ;
4+ import type { RPCApiHandlerOptions } from '.' ;
45import { PROCEDURE_ROUTE_PREFIXES } from '../common/procedures' ;
56import {
67 getIncludedModels ,
@@ -10,7 +11,6 @@ import {
1011 isProcedureIncluded ,
1112} from '../common/spec-utils' ;
1213import type { OpenApiSpecOptions } from '../common/types' ;
13- import type { RPCApiHandlerOptions } from './handler' ;
1414
1515type SchemaObject = OpenAPIV3_1 . SchemaObject ;
1616type ReferenceObject = OpenAPIV3_1 . ReferenceObject ;
@@ -685,11 +685,7 @@ export class RPCApiSpecGenerator<Schema extends SchemaDef = SchemaDef> {
685685 return baseSchema ;
686686 }
687687
688- private buildFieldFilterSchema (
689- modelName : string ,
690- fieldName : string ,
691- fieldDef : FieldDef ,
692- ) : SchemaObject | undefined {
688+ private buildFieldFilterSchema ( modelName : string , fieldName : string , fieldDef : FieldDef ) : SchemaObject | undefined {
693689 const baseSchema = this . typeToSchema ( fieldDef . type ) ;
694690 const filterProps : Record < string , SchemaObject | ReferenceObject > = { } ;
695691 const type = fieldDef . type ;
You can’t perform that action at this time.
0 commit comments