jregan
31c59bd7f2
Drop all calls to IsEmpty.
2020-08-09 10:47:06 -07:00
Morten Torkildsen
5c433ead5e
Use k8s schema to determine formatting if no type on setter
2020-07-31 13:44:47 -07:00
Morten Torkildsen
feeaa994b7
Fix issue where the schema was not propagated correctly when walking yaml doc
2020-07-31 10:56:00 -07:00
Kubernetes Prow Robot
17f935452f
Merge pull request #2778 from phanimarupaka/FixSetters
...
Fix command: Migrate v1 Setters to latest
2020-07-30 13:09:07 -07:00
Phani Teja Marupaka
6faff2d031
Fix V1 Setters and migrate to latest
2020-07-30 12:51:57 -07:00
Kubernetes Prow Robot
18a86bd7d6
Merge pull request #2784 from mortent/HandleIncorrectTypes
...
Handle some incorrect type values like 'int' and 'bool' in setters
2020-07-30 12:19:06 -07:00
Morten Torkildsen
6f63cf7238
SetterCreator accepts schema as a string rather than file path and validates schema
2020-07-28 22:53:21 -07:00
Morten Torkildsen
de0c8dedc4
Handle some incorrect type values like 'int' and 'bool' in setters
2020-07-28 13:49:07 -07:00
phani
d9fe98a289
Revert "List and set setters in folders recursively"
2020-07-22 13:51:42 -07:00
Jeff Regan
8b9829f222
Merge pull request #2738 from phanimarupaka/ListSettersRecursively
...
List and set setters in folders recursively
2020-07-22 13:14:13 -07:00
Jeff Regan
a70c6b3496
Tweak sequence treatment in fieldspecs
2020-07-22 09:23:47 -07:00
Phani Teja Marupaka
108195185f
List and set setters in folders recursively
2020-07-20 00:50:04 -07:00
Morten Torkildsen
c419c1efc3
Allow setters/substitutions with . in the name
2020-07-11 10:41:27 -07:00
Phani Teja Marupaka
9567d7ef16
Remove count field, convert error to warning
2020-07-01 10:55:30 -07:00
jregan
436dada184
Upgrade to gopkg.in/yaml.v2 v2.3.0
2020-06-30 17:45:43 -07:00
Jeff Regan
83c5c4d1f1
Merge pull request #2661 from trodge/field-not-found-error
...
Error message for creating setter that matches no fields
2020-06-30 15:08:28 -07:00
Phani Teja Marupaka
0d90b769f1
Check if required setters are set
2020-06-30 13:21:17 -07:00
Thomas Rodgers
3a0dd72c88
added count for list setters
2020-06-29 09:52:18 -07:00
Thomas Rodgers
d4ed285fd1
added count for creating setters
2020-06-29 09:37:18 -07:00
Thomas Rodgers
4cae8cfe9b
added error message
2020-06-29 09:37:18 -07:00
Phani Teja Marupaka
68ab3b87d9
Required setters for apply
2020-06-22 22:33:21 -07:00
Jijie Wei
be0f1a7fcb
remove the uncessary conversion
2020-06-22 10:00:22 -07:00
Jijie Wei
99d2994b98
remove empty definition
2020-06-22 09:54:10 -07:00
Jijie Wei
25186e94af
implement new visitor method
2020-06-18 13:49:54 -07:00
Jijie Wei
e4ba898e20
return subst name inerror message
2020-06-18 13:49:53 -07:00
Jijie Wei
22a6017870
update the pr to handle the case when the setter to be deleted is used in substitution
2020-06-18 13:49:52 -07:00
Phani Teja Marupaka
52e8a701ac
Fix validation for array setters
2020-06-18 11:50:02 -07:00
Kubernetes Prow Robot
9b5ce5002a
Merge pull request #2608 from mortent/AllValuesAcceptedAsStringType
...
Accept all values as string type in validation
2020-06-16 16:10:05 -07:00
Morten Torkildsen
0952421800
Accept all values as string type in validation
2020-06-16 15:54:28 -07:00
Phani Teja Marupaka
dbb16dcb6d
Suggested changes
2020-06-16 15:11:25 -07:00
Phani Teja Marupaka
0f0efe2a4c
Avoid manual step for creating array setters
2020-06-15 22:34:05 -07:00
Morten Torkildsen
714ff85806
Fix validation logic to use yaml parsing instead of json
2020-06-13 14:07:05 -07:00
Phani Teja Marupaka
10250286c7
Check for cycles during create-subst
2020-06-01 20:27:13 -07:00
Phani Teja Marupaka
a43d43f2c4
Nested substitutions
2020-06-01 20:27:02 -07:00
Phani Teja Marupaka
98ba8b7491
Change to create setter
2020-05-26 13:39:23 -07:00
Phani Teja Marupaka
b3f5874978
Short hand notation for set
2020-05-21 11:15:16 -07:00
Kubernetes Prow Robot
1e36c1c74f
Merge pull request #2496 from phanimarupaka/SchemaFileToOpenAPI
...
Add schema-path flag to input openAPI for setters
2020-05-18 11:25:36 -07:00
Phani Teja Marupaka
bf17177270
Suggested Changes
2020-05-16 22:21:24 -07:00
Phani Teja Marupaka
2320c10463
Validate list values against openAPI
2020-05-16 22:01:11 -07:00
Phani Teja Marupaka
50cba50a8d
Add schema-path flag to input openAPI for setters
2020-05-16 18:36:05 -07:00
Phani Teja Marupaka
7c731f0109
Validate substitutions against openAPI
2020-05-14 14:00:58 -07:00
Phani Teja Marupaka
eb7602fe19
Validate setters against openAPI
2020-05-13 21:34:28 -07:00
Phani Teja Marupaka
6d92608877
List substitutions
2020-05-05 20:51:46 -07:00
Phani Teja Marupaka
a2f2cc6a85
Create setter with marker as name for subst
2020-04-29 12:20:38 -07:00
Phillip Wittrock
6a3eaf8ba0
Refactor and optimize function to set all setters
2020-04-01 11:27:59 -07:00
Phani Teja Marupaka
a3f59f2f4f
Set all setter definitions from source package
2020-03-31 20:25:52 -07:00
Phani Teja Marupaka
a36d5b76be
Skip writing to unedited files
2020-03-20 16:24:16 -07:00
Phani Teja Marupaka
702b10d524
Add FieldSetter filter
2020-03-17 10:08:29 -07:00
Phillip Wittrock
370502ed4b
Setters: support for setting string list fields
2020-03-07 13:53:24 -08:00
Phillip Wittrock
fa507f782f
Setters: support for explicit setter typing
...
- ensure OpenAPI definitions always uses strings for setter values
- allow the field type to be defined -- integer,boolean,string
- format values using yaml 1.1 compatibility
2020-02-27 11:51:18 -08:00