Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Conversation

@hatpick
Copy link
Contributor

@hatpick hatpick commented Oct 29, 2020

Description

As per Melanie's request, this PR adds property name validation to the form dialog property names.

Task Item

#minor
Screen Shot 2020-10-28 at 5 00 50 PM

@hatpick hatpick added Team: Authoring Area: Form Dialogs The creation of an adaptive dialog from a schema defined by creating a form labels Oct 29, 2020
@coveralls
Copy link

Coverage Status

Coverage remained the same at 55.143% when pulling b34a3ad on hatpick:sorgh/fd_name_validation into eaaba10 on microsoft:main.


export const jsPropertyListClassName = 'jsPropertyListClassName';

export const nameRegex = /^[a-zA-Z0-9-_]+$/;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see this in the SDK schema for AgeEntityRecognizer. I wonder if the sdk schema should define a pattern for a valid property name rather than string? Or maybe this is too meta for a JSON schema.

"$kind": {
"title": "Kind of dialog object",
"description": "Defines the valid properties for the component you are configuring (from a dialog .schema file)",
"type": "string",
"pattern": "^[a-zA-Z][a-zA-Z0-9.]*$",
"const": "Microsoft.ActivityTemplate"
},

@hatpick hatpick merged commit d19e446 into microsoft:main Oct 29, 2020
@hatpick hatpick deleted the sorgh/fd_name_validation branch October 29, 2020 20:03
alanlong9278 added a commit to alanlong9278/BotFramework-Composer that referenced this pull request Nov 5, 2020
* settingsPage: (110 commits)
  code style
  update qna end point key after update qna subscription key
  handle comments
  handle comments
  chore: remove orchestrator (microsoft#4602)
  feat: taking control recognizer generation enhancements (microsoft#4549)
  chore: Set up Nightly static analysis pipeline in ADO (microsoft#4589)
  feature: show multi-skill project with correct link behavior (microsoft#4466)
  doc: guidelines/help-contents (microsoft#4354)
  Functions runtime: Revert to netcore3.0 for functions and make code more robust to functions variations (microsoft#4570)
  feat: Disable Connect to Skill menu action inside skill (microsoft#4557)
  fix (microsoft#4591)
  fix: Adds validation for form dialogs propery name (microsoft#4574)
  fix: update archive version in extensions/vacore (microsoft#4571)
  fix: e2e test (microsoft#4581)
  perf: avoid redraw when Project Tree selected item not changed (microsoft#4564)
  fix: security analysis failure due to bl package version (microsoft#4580)
  fix publish ut timeout (microsoft#4578)
  fix: Can not add properties in "SetProperties" action (microsoft#4572)
  ci: remove code scanning workflow (microsoft#4569)
  ...
@cwhitten cwhitten mentioned this pull request Nov 13, 2020
lei9444 pushed a commit to lei9444/BotFramework-Composer-1 that referenced this pull request Jun 15, 2021
* Adds validation for form dialogs propery name

* fix start over name

* updatd strings

Co-authored-by: Soroush <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Area: Form Dialogs The creation of an adaptive dialog from a schema defined by creating a form Team: Authoring

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants