We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 600983a commit 6f2076dCopy full SHA for 6f2076d
index.js
@@ -791,6 +791,26 @@ module.exports = {
791
if (multiple.url == '') multiple.url = url;
792
}
793
794
+ if (url.indexOf('?')>=0) {
795
+ let hparams = url.split('?')[1].split('&');
796
+ if (!path.parameters) path.parameters = [];
797
+ for (let p of hparams) {
798
+ let param = {};
799
+ param.name = p.split('=')[0];
800
+ param.in = 'query';
801
+ param.required = true;
802
+ param.type = 'string';
803
+ let val = p.split('=')[1];
804
+ if (val) {
805
+ param.enum = [val];
806
+ }
807
+ else param.allowEmptyValue = true;
808
+ console.log('Hardcoded param',param.name);
809
+ action.parameters.push(param);
810
811
+ url = url.split('?')[0];
812
813
+
814
if (addFragment) {
815
url += '#'+p;
816
0 commit comments