(self, api_name)
return api_schema
Get the schema for the given API
Get the schema for the given API
Get the schema for the given API
def get_api_schema(self, api_name) -> Optional[dict]:
        """Get the schema for the given API"""
        api_schema = self.local_schemas.get(api_name) or self.remote_schemas.get(api_name)
        if not api_schema:
            # TODO: Add link to docs in error message
            raise SchemaNotFound(
                "No schema could be found for API {}. You should ensure that either this API is"
                " being served by another lightbus process, or you can load this schema manually."
                .format(api_name)
            )
        return api_schema
def get_api_schema ( self , api_name ) -> Optional [ dict ] : api_schema = self . local_schemas . get ( api_name ) or self . remote_schemas . get ( api_name ) if not api_schema : # TODO: Add link to docs in error message raise SchemaNotFound ( "No schema could be found for API {}. You should ensure that either this API is" " being served by another lightbus process, or you can load this schema manually." . format ( api_name ) ) return api_schema