Code & Deploy
siGit Code
Git Hosting
Toggle menu
siGit Code
Git Hosting
Sign in
Sign in
@davoodmehraban89
/
medusa
Fork
0
medusa
/
www
/
apps
/
api-reference
/
utils
/
check-required.ts
Code
Commits
Issues
Pulls
Cloud Agent
CICD
security/codeql-dependabot-gitleaks
automation/medusa-upstream-review
main
project/medusa-foundation-audit
security/codeql-dependabot-gitleaks
ts
8 lines
206 Bytes
Copy permalink
Copy
Raw
1
import
type
{
OpenAPI
}
from
"
types
"
2
3
export
default
function
checkRequired
(
4
schema
:
OpenAPI
.
SchemaObject
,
5
property
?:
string
6
)
{
7
return
property
!==
undefined
&&
schema
.
required
?.
includes
(
property
)
8
}