Replies: 4 comments 7 replies
-
I don't have a lot to go by. Enums have different types, and none that are limited by a 1215 value. There shouldn't be any artificial limitations. Errors are generally due to physical limits. Can you identify the exact source location of the error and a fragment of the schema that triggers it? |
Beta Was this translation helpful? Give feedback.
-
if you have enums with assigned values, for example an enum of int16 (short), the maximum value will be 2**15. If you have assigned explicit values to some enum names, those that follow will be incremented, and you could hit the ceiling that way, if you assigned a large value. Or, you might simply be trying to assign a value to an enum that is outside of its types range of values. |
Beta Was this translation helpful? Give feedback.
-
It's in src/compiler/flatcc.c |
Beta Was this translation helpful? Give feedback.
-
I just increased FLATCC_MAX_SCHEMA_SIZE to 1000000 (1 MB) on master branch. |
Beta Was this translation helpful? Give feedback.
-
Hello
I have a schema with a very big enum. Then I got the following error when compiling the schema:
"input exceeds maximum allowed size"
It seems the enum type is limited to 1215 elements.
Is there a way to increase this limitation ?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions