For a Type, choosing Edit from the Object Browser context menu produces incomplete DDL when the type is a subtype. Example: We have a DOX_CN type. From the context menu, the first line in the editor is:
CREATE OR REPLACE TYPE "DOX_CN"
However, if you choose dbms_metadata/DDL from the context...