src/pds_doi_service/core/outputs/osti/osti_web_client.py
def _validate_field_names(self, query_dict):
        """
        Validates the provided fields by the user to make sure they match the
        expected fields by OSTI:

            https://www.osti.gov/iad2test/docs#endpoints-recordlist

        """
        o_validated_dict = {}

        for key in query_dict:
            # If the key is valid, save the field and value to return.
            if key in self.ACCEPTABLE_FIELD_NAMES_LIST:
                o_validated_dict[key] = query_dict[key]
            else:
                logger.error(f"Unexpected field name '{key}' in query_dict")
                exit(1)

        return o_validated_dict

        Validates the provided fields by the user to make sure they match the
        expected fields by OSTI:

            https://www.osti.gov/iad2test/docs#endpoints-recordlist

        
Validates the provided fields by the user to make sure they match the
expected fields by OSTI.


Validates the provided fields by the user to make sure they match the expected fields by OSTI .
def _validate_field_names(self, query_dict):
        o_validated_dict = {}
        for key in query_dict:
            if key in self.ACCEPTABLE_FIELD_NAMES_LIST:
                o_validated_dict[key] = query_dict[key]
            else:
                logger.error(f"Unexpected field name '{key}' in query_dict")
                exit(1)
        return o_validated_dict
def _validate_field_names ( self , query_dict ) : o_validated_dict = { } for key in query_dict : if key in self . ACCEPTABLE_FIELD_NAMES_LIST : o_validated_dict [ key ] = query_dict [ key ] else : logger . error ( f"Unexpected field name '{key}' in query_dict" ) exit ( 1 ) return o_validated_dict
Validates the provided fields by the user to make sure they match the
expected fields by OSTI:
Validates the provided fields by the user to make sure they match the expected fields by OSTI :
"""
        Validates the provided fields by the user to make sure they match the
        expected fields by OSTI:

            https://www.osti.gov/iad2test/docs#endpoints-recordlist

        """ # If the key is valid, save the field and value to return.
self
query_dict