File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -95,12 +95,11 @@ optional specifications:
95
95
96
96
The :meth: `pystac_client.Client.conforms_to ` method is used to check conformance
97
97
against conformance classes (specs). To check an API for support for a given spec,
98
- pass the `conforms_to ` function a :class: `ConformanceClasses ` enum value .
98
+ pass the `conforms_to ` function the name of a :class: `ConformanceClasses `.
99
99
100
100
.. code-block :: python
101
101
102
- >> > from pystac_client import ConformanceClasses
103
- >> > catalog.conforms_to(ConformanceClasses.ITEM_SEARCH )
102
+ >> > catalog.conforms_to(" ITEM_SEARCH" )
104
103
True
105
104
106
105
If the API does not advertise conformance with a particular spec, but it does support
@@ -111,9 +110,9 @@ there are no ``"conformsTo"`` uris set at all. But they can be explicitly set:
111
110
112
111
>> > catalog = Client.open(" https://earth-search.aws.element84.com/v0" )
113
112
< stdin> :1 : NoConformsTo: Server does not advertise any conformance classes.
114
- >> > catalog.conforms_to(ConformanceClasses. ITEM_SEARCH )
113
+ >> > catalog.conforms_to(" ITEM_SEARCH" )
115
114
False
116
- >> > catalog.add_conforms_to(ConformanceClasses. ITEM_SEARCH )
115
+ >> > catalog.add_conforms_to(" ITEM_SEARCH" )
117
116
118
117
Note, updating ``"conformsTo" `` does not change what the server supports, it just
119
118
changes PySTAC client's understanding of what the server supports.
You can’t perform that action at this time.
0 commit comments