Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

feat: add getCapabilities method to Search interface #42

Merged
merged 3 commits into from
Jan 12, 2021

Conversation

carvantes
Copy link
Contributor

Description of changes:

The output of getCapabilities will be used to build the CapabilityStatement for /metadata

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@carvantes carvantes requested a review from rsmayda January 6, 2021 21:58
src/search.ts Outdated
export interface SearchCapabilities {
searchParam: {
name: string;
definition: string;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Based on this, the cardinality is 0..1

Looks like definition and documentation can be optional?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

true. I changed both to be optional. Our implementation will always include those fields though, but this makes the interface more flexible for others.

@carvantes carvantes requested a review from nguyen102 January 7, 2021 16:52
@carvantes carvantes merged commit b274566 into mainline Jan 12, 2021
@carvantes carvantes deleted the dev-search-capabilities branch January 12, 2021 21:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants