Azure / Azure/data-api-builder

🥕[Improvement]: Enhance CLI to support @env() for enum options

Open
#1,781 3 comments 1 reaction 0 assignees View on GitHub
2.x enhancement
Dominant language
C#
Stars
1.5k
Forks
370
Avg merge
3d 17h
Merged PRs (30d)
8

Description

### What happened?

When doing this in the CLI:

`dab init --config "dab-config.json" --host-mode "@env('mode')" `

I got this:

`Option 'host-mode' is defined with a bad format.`

It seems to me that validation is being done prematurely. av --v

### Version

Microsoft.DataApiBuilder 0.9.5-rc

### What database are you using?

Azure SQL

### What hosting model are you using?

Local (including CLI)

### Which API approach are you accessing DAB through?

REST, GraphQL

### Relevant log output

_No response_

### Code of Conduct

- [X] I agree to follow this project's Code of Conduct

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.