Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Generating wrong types using with dedoc/scramble #457

Closed
martinsjek opened this issue Sep 11, 2024 · 0 comments
Closed

Generating wrong types using with dedoc/scramble #457

martinsjek opened this issue Sep 11, 2024 · 0 comments

Comments

@martinsjek
Copy link

When using this package with Scramble (OpenAPI generator) I encounter this issue.

News Model:

/**
 * @property string title
 */

class News extends Model
{
  use HasTranslations;
  
  public array $translatable = [
    'title',
  ];
}

NewsRosource:

        return [
            'title' => $this->title,
        ]

This will return

        "title": [
          "string"
        ],

Expected result:

        "title": "string",
@spatie spatie locked and limited conversation to collaborators Dec 11, 2024
@freekmurze freekmurze converted this issue into discussion #471 Dec 11, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant