Can I publish a schema if it has errors and warnings?

Once you generate schemas you will see this screen if there are any errors in the schema code.

If there are errors you will not be able to implement the schemas as the ‘publish’ button will not be displayed. However, if there are warnings you will be able to publish the schema, but we suggest you rectify the warnings before publishing the schemas.