Enum support
See original GitHub issueSince enum support is available in api-doc-parser, an enum support could be added to InputGuesser
.
It will dynamically generate a SelectInput
with restricted choices.
Issue Analytics
- State:
- Created a year ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
enum — Support for enumerations — Python 3.11.1 ...
enum — Support for enumerations¶ · The class Color is an enumeration (or enum) · The attributes Color.RED , Color.GREEN , etc., are...
Read more >Handbook - Enums - TypeScript
Enums allow a developer to define a set of named constants. Using enums can make it easier to document intent, or create a...
Read more >Enumeration types - C# reference - Microsoft Learn
An enumeration type (or enum type) is a value type defined by a set of named constants of the underlying integral numeric type....
Read more >Enum Types - Java™ Tutorials
An enum type is a special data type that enables for a variable to be a set of predefined constants. The variable must...
Read more >Enumeration declaration - cppreference.com
Language support library ... Concurrency support library (C++11) ... 3) Opaque enum declaration: defines the enumeration type but not its ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes you shouldn’t know which data provider is used anyway: everything needs to be abstracted.
So you mean to implement enum SelectInput guessing despite of which dataProvider is used and only for now it will only work only for OpenAPI, without assuming that we will now have both hydra features (schemaAnalyzer) and enum guessed, am I correct?
Nope, 2.6 from previous Api Platform Distrubution 😉, I will upgrade and check it out, thanks for pointing.