GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add validation to modules fields · Issue #56 · commitdev/zero-aws-eks-stack

Add validation to modules fields #56

New issue
Copy link
New issue
Copy link
Closed
#57
Closed
Add validation to modules fields#56
#57
Copy link
Assignees
dtoki

Description

@dtoki
dtoki
opened on Aug 4, 2020
Issue body actions

Related to: commitdev/zero#226

Which one of these formats should we pick for passing validation from the modules? leaning towards option 1.

// option1
- field: productionHostRoot
  label: Production Root Host Name (e.g. mydomain.com) - this must be the root of the chosen domain, not a subdomain.
  fieldValidation:
    - type: regex
    - value: '^\d{3}-\d{2}-\d{4}$'


- field: productionHostRoot
  label: Production Root Host Name (e.g. mydomain.com) - this must be the root of the chosen domain, not a subdomain.
  fieldValidation:
    - type: function
    - value: function_name_goes_here

VS

// option 2
- field: productionHostRoot
  label: Production Root Host Name (e.g. mydomain.com) - this must be the root of the chosen domain, not a subdomain.
  pattern: regex_goes_here

- field: productionHostRoot
  label: Production Root Host Name (e.g. mydomain.com) - this must be the root of the chosen domain, not a subdomain.
  validationFunction: function_name_goes_here

cc @davidcheung cc @bmonkman

Activity

  1. dtoki
    self-assigned this
    on Aug 4, 2020
  2. bmonkman commented on Aug 4, 2020

    @bmonkman
    bmonkman
    on Aug 4, 2020
    Contributor
    More actions

    Option 1. Depending on the validation function we may need to pass other parameters to it. Might as well stick to the simple ones for now but if we want to support the more complex ones we'll need to have more flexibility.

    Reacted by Dolapo Toki
  3. dtoki
    closed this as completedin #57on Aug 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @dtoki
    dtoki

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.