Skip to content

feat: Allow syntetic object fields in resources mapped to a model #22

@devdevx

Description

@devdevx

Feature Request

When I define a resource mapped to a model, I want to also support syntetic object fields.

For example:

project_resource:

{
  "id": 1
  "name": "Test",
  "permissions": {
     "edit": false
  }
}

project_model

{
  "id": 1
  "name": "Test"
}

The expected result should be a generated code where all the resource fields that exists in the model are populated and the rest of fields are only generated.

The current result is an error thrown by the getClass method

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions