${cleanKey(
- key
- )}
-
-
- {'{'}
- {properties &&
- Object.keys(properties).map(key => (
-
- {` "${key}"`}
- {`: `}
- {properties[key].type === 'string' && (
- {`"${
- properties[key].example
- }"`}
- )}
- {(properties[key].type === 'integer' ||
- properties[key].type === 'number') && (
-
- {`${properties[key].example}`}
-
- )}
- {(properties[key].type === 'array' ||
- properties[key].type === 'object') &&
- JSON.stringify(properties[key].example, null, 2)}
- ,
-
- ))}
- {'}'}
-
-
-)
-
-ParameterExample.propTypes = {
- properties: PropTypes.object
-}
-
-const Parameters = ({ parameters }) => (
- <>
- {name}
- {required && (
-
- *
-
- )}
- {type}
- {description}
- - {schema && ( -{key}
{responses[key].description}
- {summary}
- - {description &&{description}
} - - {/* - {consumes && - consumes.map((item, i) => ( -{item}
- {cleanKey(key)}
-
- {host}
- {basePath}
-
-
+
+ {'{'}
+ {properties &&
+ Object.keys(properties).map(key => (
+
+ {` "${key}"`}
+ {`: `}
+ {properties[key].type === 'string' && (
+ {`"${
+ properties[key].example
+ }"`}
+ )}
+ {(properties[key].type === 'integer' ||
+ properties[key].type === 'number') && (
+
+ {`${properties[key].example}`}
+
+ )}
+ {(properties[key].type === 'array' ||
+ properties[key].type === 'object') &&
+ JSON.stringify(properties[key].example, null, 2)}
+ ,
+
+ ))}
+ {'}'}
+
+
+)
+
+ParameterExample.propTypes = {
+ properties: PropTypes.object
+}
+
+const Parameters = ({ parameters }) => (
+ <>
+ {name}
+ {required && (
+
+ *
+
+ )}
+ {type}
+ {description}
+ + {schema && ( +{key}
{responses[key].description}
+ {summary}
+ + {description &&{description}
} + + {/* + {consumes && + consumes.map((item, i) => ( +{item}
+ {cleanPathKey(key)}
+ {cleanPathKey(key)}
+
+ {host}
+ {basePath}
+
+ {name}
+ {isOptional && (
+
+ ?
+
+ )}
+ {description}
+
+
+ {deprecatedUse}
+
+
{' '}
+ instead
+ {name}
+ {name}
+ {name}
+