Skip to content
This repository has been archived by the owner on Feb 7, 2019. It is now read-only.

Parser error:JS-YAML: TypeError: Failed to fetch #33

Open
amasoumi opened this issue Mar 9, 2018 · 0 comments
Open

Parser error:JS-YAML: TypeError: Failed to fetch #33

amasoumi opened this issue Mar 9, 2018 · 0 comments

Comments

@amasoumi
Copy link

amasoumi commented Mar 9, 2018

Hi Guys,
when i try using my raml file i get the following message (Parser error:JS-YAML: TypeError: Failed to fetch), however i am using an end point as follow (http://127.0.0.1:8080/?api=http://localhost:5100/api/v1/raml), is ther any specific context.Response.Headers or context.Response.ContentType that i need to use.
Thanks in Advanced, Alex

#%RAML 1.0
title: Web API Swagger specification
version: 1.0.0
/api:
displayName: api
/v1:
displayName: v1
/Raml:
displayName: Raml
get:
displayName: ContractDefinitionController_GetRamlDoc
responses:
'200':
body:
application/json:
type: ContractDefinitionResponse
(oas-tags):
- IContractDefinition
/Swagger:
displayName: Swagger
get:
displayName: ContractDefinitionController_GetSwaggerDoc
responses:
'200':
body:
application/json:
type: ContractDefinitionResponse
(oas-tags):
- IContractDefinition
/Health:
displayName: Health
/Service:
displayName: Service
get:
displayName: HealthMonitoringController_GetServiceHealth
responses:
'200':
body:
application/json:
type: HealthInformationResponse
(oas-tags):
- IHealthMonitoring
get:
displayName: HealthMonitoringController_GetHealth2
responses:
'200':
body:
application/json:
type: HostHealthInformationResponse
(oas-tags):
- IHealthMonitoring
/Service:
displayName: Service
/Feature:
displayName: Feature
'/[FeatureName]':
displayName: '[FeatureName]'
get:
displayName: ServiceApiController_GetFeatureStatus
responses:
'200':
body:
application/json:
type: FeatureStatus
(oas-tags):
- IServiceApi
/Status:
displayName: Status
get:
displayName: ServiceApiController_GetStatus
responses:
'200':
body:
application/json:
type: ServiceStatus
(oas-tags):
- IServiceApi
/Health:
displayName: Health
/GetHealth:
displayName: GetHealth
get:
displayName: HealthMonitoringController_GetHealth
responses:
'200':
body:
application/json:
type: HostHealthInformationResponse
(oas-tags):
- IHealthMonitoring
types:
McdRequest:
additionalProperties: false
properties:
RequestContext:
type: McdRequestContext
required: false
McdRequestContext:
additionalProperties: false
properties:
RequestId:
type: string
TransactionId:
type: string
SessionId:
type: string
ClientMajorVersion:
type: integer
format: int32
default: 0
ClientMinorVersion:
type: integer
format: int32
default: 0
MarketName:
type: string
required: false
SubMarketName:
type: string
required: false
HostHealthInformationResponse:
type: McdResponse
HostHealthInformation:
additionalProperties: false
properties:
HealthOfModules:
type: array
items:
type: ModuleHealthInformation
required: false
ModuleHealthInformation:
type: HealthInformation
ModuleStates:
type: integer
description: ''
enum:
- 0
- 1
- 2
- 10
- 11
- 12
- 20
- 21
- 30
- 31
- 40
- 41
- 50
- 51
- 60
- 61
- 99
HealthInformation:
type: object
additionalProperties: false
McdResponse:
additionalProperties: false
properties:
OperationResult:
type: McdResultInformation
required: false
McdResultInformation:
additionalProperties: false
properties:
Request:
type: McdRequestContext
required: false
Success:
type: boolean
default: false
ErrorCode:
type: integer
format: int32
default: 0
McdErrorCode:
type: integer
format: int32
default: 0
McdErrorMessage:
type: string
required: false
ServiceInstanceRequest:
additionalProperties: false
properties:
ServiceName:
type: string
required: false
HealthInformationResponse:
type: McdResponse
ServiceStatus:
additionalProperties: false
properties:
AssemblyVersions:
type: array
items:
type: AssemblyVersion
required: false
ModuleStatus:
type: array
items:
type: ModuleStatus
required: false
AssemblyVersion:
additionalProperties: false
properties:
Name:
type: string
required: false
Version:
type: string
required: false
CreationDate:
type: datetime
format: rfc3339
ModuleStatus:
additionalProperties: false
properties:
ModuleName:
type: string
default: ''
required: false
ModuleVersion:
type: string
default: 0.0.0.999
required: false
Status:
type: string
default: Not installed
required: false
FeatureStatus:
type: array
items:
type: FeatureStatus
required: false
FeatureStatus:
additionalProperties: false
properties:
Name:
type: string
required: false
Version:
type: string
required: false
Status:
type: array
items:
type: FeatureExposedStatus
required: false
FeatureExposedStatus:
additionalProperties: false
properties:
ServiceSchema:
type: string
required: false
Status:
type: string
required: false
Reason:
type: string
required: false
FeatureRequest:
additionalProperties: false
properties:
FeatureName:
type: string
required: false
ContractDefinitionResponse:
type: McdResponse
annotationTypes:
oas-tags:
type: 'string[]'
allowedTargets: Method
oas-x-generator: any
(oas-x-generator): NSwag v11.14.1.0 (NJsonSchema v9.10.24.0 (Newtonsoft.Json v10.0.0.0))

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant