bcgov / bcgov/gwa-cli

`generate-config` produces invalid configuration - service name validation

Open
#128 2 comments 0 reactions 0 assignees View on GitHub
bug jira
Dominant language
Go
Stars
8
Forks
1
PR merge metrics
No merged PRs in 30d

Description

## Description
Service name validation was added to ensure the service name and routes wont conflict with existing services and routes. However, the validation doesn't ensure that the selected service name will be valid for all generated resources.

One example is that an underscore `_` is not accepted as part of Product names

## Acceptance criteria
- review data validation rules for all resources created by `generate-config` templates (CredentialIssuer, DraftDataset, and Product) where the service name is used
- ensure service name will be valid for all generated resources (e.g. no `_` in Product)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.