Skip to content
This repository has been archived by the owner on Apr 16, 2022. It is now read-only.

Issue #140 - Fixed parsing of parameter values that contain commas that have been properly escaped using a backslash. #141

Merged
merged 6 commits into from
Apr 21, 2018

Conversation

RazzM13
Copy link
Contributor

@RazzM13 RazzM13 commented Apr 12, 2018

#140 - Fixed parsing of parameter values that contain commas that have been properly escaped using a backslash.

@RazzM13
Copy link
Contributor Author

RazzM13 commented Apr 12, 2018

This is not ready yet, tests are coming but that's going to have to wait until tomorrow.

@RazzM13 RazzM13 force-pushed the list_type_parameters branch from ed428fc to cfb6929 Compare April 13, 2018 08:51
@RazzM13
Copy link
Contributor Author

RazzM13 commented Apr 13, 2018

This should be ready for merging.

@RazzM13 RazzM13 changed the title Fixes #140 Issue #140 - Fixed parsing of parameter values that contain commas that have been properly escaped using a backslash. Apr 13, 2018
Copy link
Owner

@martysweet martysweet left a comment

Choose a reason for hiding this comment

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

Looks good, thanks, just a couple of things

src/index.ts Outdated
@@ -11,7 +11,17 @@ let firstArg: string | undefined = undefined
let secondArg: string = undefined!;

function list(val: string) {
Copy link
Owner

Choose a reason for hiding this comment

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

Comments explaining the use of this please, where is this used?

@@ -118,6 +118,24 @@ describe('index', () => {
done();
});
}).timeout(5000);

it('parameters of the CommaDelimitedList type should accept lists as values', (done) => {
exec('node lib/index.js validate testData/valid/yaml/parameters_type_commadelimitedlist.yaml --parameters SomeParam="test\\,dev\\,prod"', function(error, stdout, stderr) {
Copy link
Owner

Choose a reason for hiding this comment

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

Can this be mentioned in the docs?

something,something,something is possible

@RazzM13
Copy link
Contributor Author

RazzM13 commented Apr 21, 2018

Hi @martysweet, I'm guessing this should be complete... anything else? 😃

@martysweet
Copy link
Owner

Looks great!

@martysweet martysweet merged commit a1a4042 into martysweet:master Apr 21, 2018
@akdor1154
Copy link
Contributor

@RazzM13 were the additions to aws_parameter_types.json necessary? I'm not sure they were needed (at least they shouldn't have been, it's quite possible my code was dodgy and doesn't work though :) )

@martysweet
Copy link
Owner

martysweet commented Apr 27, 2018

@akdor1154 Can you create an issue and reference this PR? Otherwise, it will get lost. 😀

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

Successfully merging this pull request may close these issues.

3 participants