pontx-spec / Exports
- DiffItem
- Mod
- Parameter
- PontAPI
- PontJsonSchema
- PontNamespace
- PontSpec
- PontSpecs
- PontxDirectoryNode
- SpecDiffTree
Ƭ ObjectMap<T
>: Object
Name |
---|
T |
▪ [key: string
]: T
Ƭ ResponseObject: Object
Name | Type |
---|---|
description? |
string |
headers? |
OAS2.HeadersObject |
schema |
PontJsonSchema |
• Const
PontJsonPointer: Object
Name | Type |
---|---|
get |
(json : any , jsonpointer : string ) => any |
remove |
(json : any , jsonpointer : string ) => any |
removeMapKeyBy |
(json : any , jsonpointer : string , checkRemoveKey : (key : string | number ) => boolean ) => any |
set |
(json : any , jsonpointer : string , newValue : any ) => any |
update |
(json : any , jsonpointer : string , updator : (val : any ) => any ) => any |
pontx-spec/src/jsonpointer.ts:163
• Const
WithoutModsName: typeof WithoutModsName
▸ parsePontSpec2OAS2(spec
): SwaggerObject
| { apis
: ObjectMap
<PontAPI
> = spec.apis; basePath
: string
= spec.basePath; definitions
: ObjectMap
<PontJsonSchema
> = spec.definitions; externalDocs
: ExternalDocumentationObject
= spec.externalDocs; host
: string
= spec.host; info
: { description
: string
= spec.description; title
: string
= spec.title; version
: string
= spec.version } ; swagger
: string
= "2.0"; tags
: { description
: string
; name
: string
}[] }
Name | Type |
---|---|
spec |
PontSpec |
SwaggerObject
| { apis
: ObjectMap
<PontAPI
> = spec.apis; basePath
: string
= spec.basePath; definitions
: ObjectMap
<PontJsonSchema
> = spec.definitions; externalDocs
: ExternalDocumentationObject
= spec.externalDocs; host
: string
= spec.host; info
: { description
: string
= spec.description; title
: string
= spec.title; version
: string
= spec.version } ; swagger
: string
= "2.0"; tags
: { description
: string
; name
: string
}[] }
▸ removeMapKeys<T
>(obj
, checkRemoveKey
): T
Name | Type |
---|---|
T |
extends ObjectMap <any > |
Name | Type |
---|---|
obj |
T |
checkRemoveKey |
(key : string ) => boolean |
T