Skip to content
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

Add support for enums #776

Open
Maxim-Mazurok opened this issue Dec 29, 2022 · 0 comments
Open

Add support for enums #776

Maxim-Mazurok opened this issue Dec 29, 2022 · 0 comments

Comments

@Maxim-Mazurok
Copy link
Owner

For example, valueRenderOption from https://sheets.googleapis.com/$discovery/rest?version=v4

"valueRenderOption": {
  "enum": [
    "FORMATTED_VALUE",
    "UNFORMATTED_VALUE",
    "FORMULA"
  ],
  "description": "How values should be represented in the output. The default render option is ValueRenderOption.FORMATTED_VALUE.",
  "enumDescriptions": [
    "Values will be calculated & formatted in the reply according to the cell's formatting. Formatting is based on the spreadsheet's locale, not the requesting user's locale. For example, if `A1` is `1.23` and `A2` is `=A1` and formatted as currency, then `A2` would return `\"$1.23\"`.",
    "Values will be calculated, but not formatted in the reply. For example, if `A1` is `1.23` and `A2` is `=A1` and formatted as currency, then `A2` would return the number `1.23`.",
    "Values will not be calculated. The reply will include the formulas. For example, if `A1` is `1.23` and `A2` is `=A1` and formatted as currency, then A2 would return `\"=A1\"`."
  ],
  "location": "query",
  "type": "string"
}

All I'm getting is this:

/**
 * How values should be represented in the output. The default render option is FORMATTED_VALUE.
 */
valueRenderOption?: string;

Instead, I want to either have a proper enum declared somewhere, or at least union type.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant