Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I add a custom schema when using refence for a field #100

Open
catalinux opened this issue Aug 22, 2023 · 0 comments
Open

How can I add a custom schema when using refence for a field #100

catalinux opened this issue Aug 22, 2023 · 0 comments

Comments

@catalinux
Copy link

catalinux commented Aug 22, 2023

Let's say that instead of giving properties for key called attributes I want to to name it as a reference AccountAttributes.

it works with Schema::ref('#/components/schemas/AccountAttributes') as I finds it in the generated schema

"attributes": {
                                "$ref": "#\/components\/schemas\/AccountAttributes"
                            }

but i did not find it exported to the file in components fields

 "components": {
        "schemas": {
@catalinux catalinux changed the title How to add a costum schema when using refence for a field How can I add a custom schema when using refence for a field Aug 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant