Skip to content

Instantly share code, notes, and snippets.

@dahse89
Created February 28, 2020 15:38
Show Gist options
  • Save dahse89/04d4d71e773eb2af0ec318649bc16f42 to your computer and use it in GitHub Desktop.
Save dahse89/04d4d71e773eb2af0ec318649bc16f42 to your computer and use it in GitHub Desktop.
{
"type": "https://tools.ietf.org/html/rfc2616#section-10",
"title": "An error occurred",
"detail": "Class rray<string,string> does not exist",
"trace": [
{
"namespace": "",
"short_class": "",
"class": "",
"type": "",
"function": "",
"file": "/vagrant/projects/beauty-core/vendor/api-platform/core/src/JsonSchema/SchemaFactory.php",
"line": 216,
"args": []
},
{
"namespace": "",
"short_class": "ReflectionClass",
"class": "ReflectionClass",
"type": "->",
"function": "__construct",
"file": "/vagrant/projects/beauty-core/vendor/api-platform/core/src/JsonSchema/SchemaFactory.php",
"line": 216,
"args": [
[
"string",
"rray<string,string>"
]
]
},
{
"namespace": "ApiPlatform\\Core\\JsonSchema",
"short_class": "SchemaFactory",
"class": "ApiPlatform\\Core\\JsonSchema\\SchemaFactory",
"type": "->",
"function": "buildDefinitionName",
"file": "/vagrant/projects/beauty-core/vendor/api-platform/core/src/JsonSchema/SchemaFactory.php",
"line": 82,
"args": [
[
"string",
"rray<string,string>"
],
[
"string",
"jsonld"
],
[
"string",
"output"
],
[
"null",
null
],
[
"null",
null
],
[
"array",
{
"groups": [
"array",
[
[
"string",
"read"
]
]
]
}
]
]
},
{
"namespace": "ApiPlatform\\Core\\JsonSchema",
"short_class": "SchemaFactory",
"class": "ApiPlatform\\Core\\JsonSchema\\SchemaFactory",
"type": "->",
"function": "buildSchema",
"file": "/vagrant/projects/beauty-core/vendor/api-platform/core/src/Hydra/JsonSchema/SchemaFactory.php",
"line": 52,
"args": [
[
"string",
"rray<string,string>"
],
[
"string",
"jsonld"
],
[
"string",
"output"
],
[
"null",
null
],
[
"null",
null
],
[
"object",
"ApiPlatform\\Core\\JsonSchema\\Schema"
],
[
"array",
{
"groups": [
"array",
[
[
"string",
"read"
]
]
]
}
],
[
"boolean",
false
]
]
},
{
"namespace": "ApiPlatform\\Core\\Hydra\\JsonSchema",
"short_class": "SchemaFactory",
"class": "ApiPlatform\\Core\\Hydra\\JsonSchema\\SchemaFactory",
"type": "->",
"function": "buildSchema",
"file": "/vagrant/projects/beauty-core/vendor/api-platform/core/src/JsonSchema/TypeFactory.php",
"line": 118,
"args": [
[
"string",
"rray<string,string>"
],
[
"string",
"jsonld"
],
[
"string",
"output"
],
[
"null",
null
],
[
"null",
null
],
[
"object",
"ApiPlatform\\Core\\JsonSchema\\Schema"
],
[
"array",
{
"groups": [
"array",
[
[
"string",
"read"
]
]
]
}
]
]
},
{
"namespace": "ApiPlatform\\Core\\JsonSchema",
"short_class": "TypeFactory",
"class": "ApiPlatform\\Core\\JsonSchema\\TypeFactory",
"type": "->",
"function": "getClassType",
"file": "/vagrant/projects/beauty-core/vendor/api-platform/core/src/JsonSchema/TypeFactory.php",
"line": 69,
"args": [
[
"string",
"rray<string,string>"
],
[
"string",
"jsonld"
],
[
"null",
null
],
[
"array",
{
"groups": [
"array",
[
[
"string",
"read"
]
]
]
}
],
[
"object",
"ApiPlatform\\Core\\JsonSchema\\Schema"
]
]
},
{
"namespace": "ApiPlatform\\Core\\JsonSchema",
"short_class": "TypeFactory",
"class": "ApiPlatform\\Core\\JsonSchema\\TypeFactory",
"type": "->",
"function": "getType",
"file": "/vagrant/projects/beauty-core/vendor/api-platform/core/src/JsonSchema/SchemaFactory.php",
"line": 199,
"args": [
[
"object",
"Symfony\\Component\\PropertyInfo\\Type"
],
[
"string",
"jsonld"
],
[
"null",
null
],
[
"array",
{
"groups": [
"array",
[
[
"string",
"read"
]
]
]
}
],
[
"object",
"ApiPlatform\\Core\\JsonSchema\\Schema"
]
]
},
{
"namespace": "ApiPlatform\\Core\\JsonSchema",
"short_class": "SchemaFactory",
"class": "ApiPlatform\\Core\\JsonSchema\\SchemaFactory",
"type": "->",
"function": "buildPropertySchema",
"file": "/vagrant/projects/beauty-core/vendor/api-platform/core/src/JsonSchema/SchemaFactory.php",
"line": 146,
"args": [
[
"object",
"ApiPlatform\\Core\\JsonSchema\\Schema"
],
[
"string",
"QuestionnaireAnswer:jsonld-read"
],
[
"string",
"answer"
],
[
"object",
"ApiPlatform\\Core\\Metadata\\Property\\PropertyMetadata"
],
[
"array",
{
"groups": [
"array",
[
[
"string",
"read"
]
]
]
}
],
[
"string",
"jsonld"
]
]
},
{
"namespace": "ApiPlatform\\Core\\JsonSchema",
"short_class": "SchemaFactory",
"class": "ApiPlatform\\Core\\JsonSchema\\SchemaFactory",
"type": "->",
"function": "buildSchema",
"file": "/vagrant/projects/beauty-core/vendor/api-platform/core/src/Hydra/JsonSchema/SchemaFactory.php",
"line": 52,
"args": [
[
"string",
"App\\Entity\\QuestionnaireAnswer"
],
[
"string",
"jsonld"
],
[
"string",
"output"
],
[
"null",
null
],
[
"null",
null
],
[
"object",
"ApiPlatform\\Core\\JsonSchema\\Schema"
],
[
"array",
{
"groups": [
"array",
[
[
"string",
"read"
]
]
]
}
],
[
"boolean",
false
]
]
},
{
"namespace": "ApiPlatform\\Core\\Hydra\\JsonSchema",
"short_class": "SchemaFactory",
"class": "ApiPlatform\\Core\\Hydra\\JsonSchema\\SchemaFactory",
"type": "->",
"function": "buildSchema",
"file": "/vagrant/projects/beauty-core/vendor/api-platform/core/src/JsonSchema/TypeFactory.php",
"line": 118,
"args": [
[
"string",
"App\\Entity\\QuestionnaireAnswer"
],
[
"string",
"jsonld"
],
[
"string",
"output"
],
[
"null",
null
],
[
"null",
null
],
[
"object",
"ApiPlatform\\Core\\JsonSchema\\Schema"
],
[
"array",
{
"groups": [
"array",
[
[
"string",
"read"
]
]
]
}
]
]
},
{
"namespace": "ApiPlatform\\Core\\JsonSchema",
"short_class": "TypeFactory",
"class": "ApiPlatform\\Core\\JsonSchema\\TypeFactory",
"type": "->",
"function": "getClassType",
"file": "/vagrant/projects/beauty-core/vendor/api-platform/core/src/JsonSchema/TypeFactory.php",
"line": 69,
"args": [
[
"string",
"App\\Entity\\QuestionnaireAnswer"
],
[
"string",
"jsonld"
],
[
"boolean",
true
],
[
"array",
{
"groups": [
"array",
[
[
"string",
"read"
]
]
]
}
],
[
"object",
"ApiPlatform\\Core\\JsonSchema\\Schema"
]
]
},
{
"namespace": "ApiPlatform\\Core\\JsonSchema",
"short_class": "TypeFactory",
"class": "ApiPlatform\\Core\\JsonSchema\\TypeFactory",
"type": "->",
"function": "getType",
"file": "/vagrant/projects/beauty-core/vendor/api-platform/core/src/JsonSchema/TypeFactory.php",
"line": 57,
"args": [
[
"object",
"Symfony\\Component\\PropertyInfo\\Type"
],
[
"string",
"jsonld"
],
[
"boolean",
true
],
[
"array",
{
"groups": [
"array",
[
[
"string",
"read"
]
]
]
}
],
[
"object",
"ApiPlatform\\Core\\JsonSchema\\Schema"
]
]
},
{
"namespace": "ApiPlatform\\Core\\JsonSchema",
"short_class": "TypeFactory",
"class": "ApiPlatform\\Core\\JsonSchema\\TypeFactory",
"type": "->",
"function": "getType",
"file": "/vagrant/projects/beauty-core/vendor/api-platform/core/src/JsonSchema/SchemaFactory.php",
"line": 199,
"args": [
[
"object",
"Symfony\\Component\\PropertyInfo\\Type"
],
[
"string",
"jsonld"
],
[
"boolean",
true
],
[
"array",
{
"groups": [
"array",
[
[
"string",
"read"
]
]
]
}
],
[
"object",
"ApiPlatform\\Core\\JsonSchema\\Schema"
]
]
},
{
"namespace": "ApiPlatform\\Core\\JsonSchema",
"short_class": "SchemaFactory",
"class": "ApiPlatform\\Core\\JsonSchema\\SchemaFactory",
"type": "->",
"function": "buildPropertySchema",
"file": "/vagrant/projects/beauty-core/vendor/api-platform/core/src/JsonSchema/SchemaFactory.php",
"line": 146,
"args": [
[
"object",
"ApiPlatform\\Core\\JsonSchema\\Schema"
],
[
"string",
"Questionnaire:jsonld-read"
],
[
"string",
"answers"
],
[
"object",
"ApiPlatform\\Core\\Metadata\\Property\\PropertyMetadata"
],
[
"array",
{
"groups": [
"array",
[
[
"string",
"read"
]
]
]
}
],
[
"string",
"jsonld"
]
]
},
{
"namespace": "ApiPlatform\\Core\\JsonSchema",
"short_class": "SchemaFactory",
"class": "ApiPlatform\\Core\\JsonSchema\\SchemaFactory",
"type": "->",
"function": "buildSchema",
"file": "/vagrant/projects/beauty-core/vendor/api-platform/core/src/Hydra/JsonSchema/SchemaFactory.php",
"line": 52,
"args": [
[
"string",
"App\\Entity\\Questionnaire"
],
[
"string",
"jsonld"
],
[
"string",
"output"
],
[
"string",
"item"
],
[
"string",
"GET"
],
[
"object",
"ApiPlatform\\Core\\JsonSchema\\Schema"
],
[
"array",
{
"groups": [
"array",
[
[
"string",
"read"
]
]
]
}
],
[
"boolean",
false
]
]
},
{
"namespace": "ApiPlatform\\Core\\Hydra\\JsonSchema",
"short_class": "SchemaFactory",
"class": "ApiPlatform\\Core\\Hydra\\JsonSchema\\SchemaFactory",
"type": "->",
"function": "buildSchema",
"file": "/vagrant/projects/beauty-core/vendor/api-platform/core/src/Swagger/Serializer/DocumentationNormalizer.php",
"line": 597,
"args": [
[
"string",
"App\\Entity\\Questionnaire"
],
[
"string",
"jsonld"
],
[
"string",
"output"
],
[
"string",
"item"
],
[
"string",
"GET"
],
[
"object",
"ApiPlatform\\Core\\JsonSchema\\Schema"
],
[
"null",
null
],
[
"boolean",
false
]
]
},
{
"namespace": "ApiPlatform\\Core\\Swagger\\Serializer",
"short_class": "DocumentationNormalizer",
"class": "ApiPlatform\\Core\\Swagger\\Serializer\\DocumentationNormalizer",
"type": "->",
"function": "getJsonSchema",
"file": "/vagrant/projects/beauty-core/vendor/api-platform/core/src/Swagger/Serializer/DocumentationNormalizer.php",
"line": 305,
"args": [
[
"boolean",
true
],
[
"object",
"ArrayObject"
],
[
"string",
"App\\Entity\\Questionnaire"
],
[
"string",
"output"
],
[
"string",
"item"
],
[
"string",
"GET"
],
[
"string",
"jsonld"
],
[
"null",
null
],
[
"boolean",
false
]
]
},
{
"namespace": "ApiPlatform\\Core\\Swagger\\Serializer",
"short_class": "DocumentationNormalizer",
"class": "ApiPlatform\\Core\\Swagger\\Serializer\\DocumentationNormalizer",
"type": "->",
"function": "addSchemas",
"file": "/vagrant/projects/beauty-core/vendor/api-platform/core/src/Swagger/Serializer/DocumentationNormalizer.php",
"line": 343,
"args": [
[
"boolean",
true
],
[
"array",
{
"description": [
"string",
"Questionnaire resource response"
]
}
],
[
"object",
"ArrayObject"
],
[
"string",
"App\\Entity\\Questionnaire"
],
[
"string",
"item"
],
[
"string",
"GET"
],
[
"array",
{
"application/ld+json": [
"string",
"jsonld"
],
"application/json": [
"string",
"json"
],
"text/html": [
"string",
"html"
]
}
]
]
},
{
"namespace": "ApiPlatform\\Core\\Swagger\\Serializer",
"short_class": "DocumentationNormalizer",
"class": "ApiPlatform\\Core\\Swagger\\Serializer\\DocumentationNormalizer",
"type": "->",
"function": "updateGetOperation",
"file": "/vagrant/projects/beauty-core/vendor/api-platform/core/src/Swagger/Serializer/DocumentationNormalizer.php",
"line": 273,
"args": [
[
"boolean",
true
],
[
"object",
"ArrayObject"
],
[
"array",
{
"application/ld+json": [
"string",
"jsonld"
],
"application/json": [
"string",
"json"
],
"text/html": [
"string",
"html"
]
}
],
[
"string",
"item"
],
[
"object",
"ApiPlatform\\Core\\Metadata\\Resource\\ResourceMetadata"
],
[
"string",
"App\\Entity\\Questionnaire"
],
[
"string",
"Questionnaire"
],
[
"string",
"GET"
],
[
"object",
"ArrayObject"
]
]
},
{
"namespace": "ApiPlatform\\Core\\Swagger\\Serializer",
"short_class": "DocumentationNormalizer",
"class": "ApiPlatform\\Core\\Swagger\\Serializer\\DocumentationNormalizer",
"type": "->",
"function": "getPathOperation",
"file": "/vagrant/projects/beauty-core/vendor/api-platform/core/src/Swagger/Serializer/DocumentationNormalizer.php",
"line": 222,
"args": [
[
"boolean",
true
],
[
"string",
"GET"
],
[
"array",
{
"method": [
"string",
"GET"
],
"input_formats": [
"array",
{
"jsonld": [
"array",
[
[
"string",
"application/ld+json"
]
]
],
"json": [
"array",
[
[
"string",
"application/json"
]
]
],
"html": [
"array",
[
[
"string",
"text/html"
]
]
]
}
],
"output_formats": [
"array",
{
"jsonld": [
"array",
[
[
"string",
"application/ld+json"
]
]
],
"json": [
"array",
[
[
"string",
"application/json"
]
]
],
"html": [
"array",
[
[
"string",
"text/html"
]
]
]
}
]
}
],
[
"string",
"GET"
],
[
"string",
"item"
],
[
"string",
"App\\Entity\\Questionnaire"
],
[
"object",
"ApiPlatform\\Core\\Metadata\\Resource\\ResourceMetadata"
],
[
"object",
"ArrayObject"
],
[
"object",
"ArrayObject"
]
]
},
{
"namespace": "ApiPlatform\\Core\\Swagger\\Serializer",
"short_class": "DocumentationNormalizer",
"class": "ApiPlatform\\Core\\Swagger\\Serializer\\DocumentationNormalizer",
"type": "->",
"function": "addPaths",
"file": "/vagrant/projects/beauty-core/vendor/api-platform/core/src/Swagger/Serializer/DocumentationNormalizer.php",
"line": 187,
"args": [
[
"boolean",
true
],
[
"object",
"ArrayObject"
],
[
"object",
"ArrayObject"
],
[
"string",
"App\\Entity\\Questionnaire"
],
[
"string",
"Questionnaire"
],
[
"object",
"ApiPlatform\\Core\\Metadata\\Resource\\ResourceMetadata"
],
[
"string",
"item"
],
[
"object",
"ArrayObject"
]
]
},
{
"namespace": "ApiPlatform\\Core\\Swagger\\Serializer",
"short_class": "DocumentationNormalizer",
"class": "ApiPlatform\\Core\\Swagger\\Serializer\\DocumentationNormalizer",
"type": "->",
"function": "normalize",
"file": "/vagrant/projects/beauty-core/vendor/api-platform/core/src/Swagger/Serializer/ApiGatewayNormalizer.php",
"line": 51,
"args": [
[
"object",
"ApiPlatform\\Core\\Documentation\\Documentation"
],
[
"string",
"json"
],
[
"array",
{
"base_url": [
"string",
""
],
"spec_version": [
"integer",
3
]
}
]
]
},
{
"namespace": "ApiPlatform\\Core\\Swagger\\Serializer",
"short_class": "ApiGatewayNormalizer",
"class": "ApiPlatform\\Core\\Swagger\\Serializer\\ApiGatewayNormalizer",
"type": "->",
"function": "normalize",
"file": "/vagrant/projects/beauty-core/vendor/symfony/serializer/Serializer.php",
"line": 146,
"args": [
[
"object",
"ApiPlatform\\Core\\Documentation\\Documentation"
],
[
"string",
"json"
],
[
"array",
{
"base_url": [
"string",
""
],
"spec_version": [
"integer",
3
]
}
]
]
},
{
"namespace": "Symfony\\Component\\Serializer",
"short_class": "Serializer",
"class": "Symfony\\Component\\Serializer\\Serializer",
"type": "->",
"function": "normalize",
"file": "/vagrant/projects/beauty-core/vendor/symfony/serializer/Serializer.php",
"line": 119,
"args": [
[
"object",
"ApiPlatform\\Core\\Documentation\\Documentation"
],
[
"string",
"json"
],
[
"array",
{
"base_url": [
"string",
""
],
"spec_version": [
"integer",
3
]
}
]
]
},
{
"namespace": "Symfony\\Component\\Serializer",
"short_class": "Serializer",
"class": "Symfony\\Component\\Serializer\\Serializer",
"type": "->",
"function": "serialize",
"file": "/vagrant/projects/beauty-core/vendor/api-platform/core/src/EventListener/SerializeListener.php",
"line": 119,
"args": [
[
"object",
"ApiPlatform\\Core\\Documentation\\Documentation"
],
[
"string",
"json"
],
[
"array",
{
"base_url": [
"string",
""
],
"spec_version": [
"integer",
3
]
}
]
]
},
{
"namespace": "ApiPlatform\\Core\\EventListener",
"short_class": "SerializeListener",
"class": "ApiPlatform\\Core\\EventListener\\SerializeListener",
"type": "->",
"function": "serializeRawData",
"file": "/vagrant/projects/beauty-core/vendor/api-platform/core/src/EventListener/SerializeListener.php",
"line": 69,
"args": [
[
"object",
"Symfony\\Component\\HttpKernel\\Event\\ViewEvent"
],
[
"object",
"Symfony\\Component\\HttpFoundation\\Request"
],
[
"object",
"ApiPlatform\\Core\\Documentation\\Documentation"
]
]
},
{
"namespace": "ApiPlatform\\Core\\EventListener",
"short_class": "SerializeListener",
"class": "ApiPlatform\\Core\\EventListener\\SerializeListener",
"type": "->",
"function": "onKernelView",
"file": "/vagrant/projects/beauty-core/vendor/symfony/event-dispatcher/EventDispatcher.php",
"line": 270,
"args": [
[
"object",
"Symfony\\Component\\HttpKernel\\Event\\ViewEvent"
],
[
"string",
"kernel.view"
],
[
"object",
"Symfony\\Component\\EventDispatcher\\EventDispatcher"
]
]
},
{
"namespace": "Symfony\\Component\\EventDispatcher",
"short_class": "EventDispatcher",
"class": "Symfony\\Component\\EventDispatcher\\EventDispatcher",
"type": "::",
"function": "Symfony\\Component\\EventDispatcher\\{closure}",
"file": "/vagrant/projects/beauty-core/vendor/symfony/event-dispatcher/EventDispatcher.php",
"line": 230,
"args": [
[
"object",
"Symfony\\Component\\HttpKernel\\Event\\ViewEvent"
],
[
"string",
"kernel.view"
],
[
"object",
"Symfony\\Component\\EventDispatcher\\EventDispatcher"
]
]
},
{
"namespace": "Symfony\\Component\\EventDispatcher",
"short_class": "EventDispatcher",
"class": "Symfony\\Component\\EventDispatcher\\EventDispatcher",
"type": "->",
"function": "callListeners",
"file": "/vagrant/projects/beauty-core/vendor/symfony/event-dispatcher/EventDispatcher.php",
"line": 59,
"args": [
[
"array",
[
[
"object",
"Closure"
],
[
"object",
"Closure"
],
[
"object",
"Closure"
],
[
"object",
"Closure"
]
]
],
[
"string",
"kernel.view"
],
[
"object",
"Symfony\\Component\\HttpKernel\\Event\\ViewEvent"
]
]
},
{
"namespace": "Symfony\\Component\\EventDispatcher",
"short_class": "EventDispatcher",
"class": "Symfony\\Component\\EventDispatcher\\EventDispatcher",
"type": "->",
"function": "dispatch",
"file": "/vagrant/projects/beauty-core/vendor/symfony/http-kernel/HttpKernel.php",
"line": 150,
"args": [
[
"object",
"Symfony\\Component\\HttpKernel\\Event\\ViewEvent"
],
[
"string",
"kernel.view"
]
]
},
{
"namespace": "Symfony\\Component\\HttpKernel",
"short_class": "HttpKernel",
"class": "Symfony\\Component\\HttpKernel\\HttpKernel",
"type": "->",
"function": "handleRaw",
"file": "/vagrant/projects/beauty-core/vendor/symfony/http-kernel/HttpKernel.php",
"line": 67,
"args": [
[
"object",
"Symfony\\Component\\HttpFoundation\\Request"
],
[
"integer",
1
]
]
},
{
"namespace": "Symfony\\Component\\HttpKernel",
"short_class": "HttpKernel",
"class": "Symfony\\Component\\HttpKernel\\HttpKernel",
"type": "->",
"function": "handle",
"file": "/vagrant/projects/beauty-core/vendor/symfony/http-kernel/Kernel.php",
"line": 191,
"args": [
[
"object",
"Symfony\\Component\\HttpFoundation\\Request"
],
[
"integer",
1
],
[
"boolean",
true
]
]
},
{
"namespace": "Symfony\\Component\\HttpKernel",
"short_class": "Kernel",
"class": "Symfony\\Component\\HttpKernel\\Kernel",
"type": "->",
"function": "handle",
"file": "/vagrant/projects/beauty-core/public/index.php",
"line": 25,
"args": [
[
"object",
"Symfony\\Component\\HttpFoundation\\Request"
]
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment