MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / ordered_params

Function ordered_params

scripts/generate-sdk.py:61–66  ·  view source on GitHub ↗

Return (required_names, optional_names) in a stable order.

(cmd)

Source from the content-addressed store, hash-verified

59
60
61def ordered_params(cmd):
62 """Return (required_names, optional_names) in a stable order."""
63 props = cmd.get("properties", {})
64 required = [p for p in cmd.get("required", []) if p in props]
65 optional = sorted(n for n in props if n not in required)
66 return required, optional
67
68
69def js_ident(name):

Callers 2

emit_jsFunction · 0.85
emit_luaFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected