Disable built-in extensions #418
the-sidner
started this conversation in
Ideas
Replies: 1 comment
-
@the-sidner this is a very valid problem indeed. I will think about this. Any suggestions about most DX-friendly API are welcome! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description:
We have numerous resources in our project, all of which are suffixed with
Resource
(e.g.,ServerResource
,NodeResource
). For our OpenAPI specification, we want to remove thisResource
suffix. Currently, we achieve this by overwriting theDedoc\Scramble\Support\TypeToSchemaExtensions\JsonResourceTypeToSchema
class in ourcomposer.json
as follows:Problem:
I am unsure how to replace the default
JsonResourceTypeToSchema
class without modifying the files in thevendor
directory. When I create a newTypeToSchema
extension, it runs concurrently with the built-in extension, which results in an unusable OpenAPI specification.Request:
I would like to disable the default
JsonResourceTypeToSchema
extension and use my custom extension instead. How can I achieve this without directly modifying the vendor directory?Beta Was this translation helpful? Give feedback.
All reactions