Skip to content

Allow fbs fs_serializer attribute to override global code gen settings #402

Description

@duckdoom4

Hi there, me again.

Turns out we do have one single table that used the Progressive serializer scheme, defined in the fbs using the attributes.
table MyTable (fs_serializer:"Progressive")

Since we have GreedyMutable set in the project settings this no longer works.

<PropertyGroup>
  <FlatSharpDeserializers>GreedyMutable</FlatSharpDeserializers>
</PropertyGroup>

We were wondering if it would be possible to have the fbs override the global settings. We still don't want Progressive serializers to generate for any other files, but only for this single specific file.

If it's not easy to only look at the fbs attributes, maybe an added option like "AndIfSpecified" to enable that at a global level. (If omitted it'll still globally cause it to ignore the fbs attributes.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions