MCPcopy
hub / github.com/swagger-api/swagger-ui / OperationExt

Function OperationExt

src/core/components/operation-extensions.jsx:4–29  ·  view source on GitHub ↗
({ extensions, getComponent })

Source from the content-addressed store, hash-verified

2import PropTypes from "prop-types"
3
4export const OperationExt = ({ extensions, getComponent }) => {
5 let OperationExtRow = getComponent("OperationExtRow")
6 return (
7 <div className="opblock-section">
8 <div className="opblock-section-header">
9 <h4>Extensions</h4>
10 </div>
11 <div className="table-container">
12
13 <table>
14 <thead>
15 <tr>
16 <td className="col_header">Field</td>
17 <td className="col_header">Value</td>
18 </tr>
19 </thead>
20 <tbody>
21 {
22 extensions.entrySeq().map(([k, v]) => <OperationExtRow key={`${k}-${v}`} xKey={k} xVal={v} />)
23 }
24 </tbody>
25 </table>
26 </div>
27 </div>
28 )
29}
30OperationExt.propTypes = {
31 extensions: PropTypes.object.isRequired,
32 getComponent: PropTypes.func.isRequired

Callers

nothing calls this directly

Calls 1

getComponentFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…