UNPKG

@ordercloud/oc-codegen

Version:

OpenAPI codegen tool built for the OrderCloud API

7 lines (6 loc) 310 B
import { OpenAPIV3 } from 'openapi-types'; import { Operation } from '../operation.model'; /** * Replace oc-codegen's resource formatter with your own */ export type FormatResourceHook = (tag: OpenAPIV3.TagObject, operations: Operation[], tags: OpenAPIV3.TagObject[], spec: OpenAPIV3.Document) => any;